$rootBookmarksJSON = $rootBookmarksList | ConvertTo-Json -Compress $rootBookmarksList = Get-BookmarksList ($URLFiles) $URLFiles = Get-ChildItem $IEFavoritesPath "*.url" # Get the favorites in the root of the Favorites folder # Add the JSON formatted subfolder to the text fileĪdd-Content $JSONFile $folderJSONcomplete -NoNewline $folderJSONcomplete = $folderJSONStart + $folderBookmarksJSON + $folderJSONEnd $folderBookmarksJSON = $folderBookmarksList | ConvertTo-Json -Compress $folderJSONStart = $folderJSONStart1 + $folderName + $folderJSONStart2 # Create the JSON formatting for the subfolder $folderBookmarksList = Get-BookmarksList ($folderURLFiles) # Get the URLs and names of the favorites using the Get-BookmarksList function $folderURLFiles = Get-ChildItem $folderpath $folderPath = $folder.FullName + "\*.url" # Get the name for the folder as it will be displayed in the browser based on file folder name #Create Folders in Bookmarks and create bookmarks in these folders #Create the json file using info on the name of the Managed Bookmarks $iniContent = Get-IniContent $item.FullName # Read the URL from the file content using the Get-IniContent function # Function to get the name and URL for each favorite/bookmark # It gets the content of an INI file and returns it as a hashtable # Function to get content from the URL files is based on $JSONFile = "$UserProfile\Documents\ManagedBookmarks.txt" # Enter the path to the text file, where you want the script to store the JSON formatted string $IEFavoritesPath = "$UserProfile\Favorites" URL files to be converted to Edge/Chrome JSON file
![microsoft edge chromium favorites location microsoft edge chromium favorites location](https://winaero.com/blog/wp-content/uploads/2019/11/Microsoft-Edge-Export-Favorites-Link.png)
# Enter the path with the favorites stored as. # Enter the name of the Managed Bookmarks/Favorites, as they should be named in the browser
![microsoft edge chromium favorites location microsoft edge chromium favorites location](https://news-cdn.softpedia.com/images/news2/importing-data-from-other-browsers-to-chromium-microsoft-edge-526920-3.jpg)
Get-IniContent script on Technet Gallery the script: URL files from a function created by Oliver Lipkau I have based the part that reads data from the. If the Group Policy Editor simply doesn’t allow you to paste the string in, then you have hit the limit )īut please test, because I have experienced, that I’m allowed to paste in the string, but Chrome still does not show the bookmarks.įor me, the limit was somewhere between 3729 characters in the string. The limit depends on the length of both the URLs and the names of the favorites / bookmarks. The Group Policy setting simply isn’t capable of huge amounts of favorites/bookmarks. The limitation is not in the script, but in the ADMX policy and in registry.įor the same reason, the script does not traverse large hierachies, but only one level of subfolders. Output the JSON formatted text string to %USERPROFILE%\Documents\ManagedBookmarks.txt ( $JSONFile)Īfter the file creation, simply copy the contents of the file and insert in the Group Policy setting.īe aware of the limitation in the JSON string length Name the Managed Favorites / Bookmarks folder in the browser “ IE Favorites” ( $bookmarksTopLevelName) Read the favorites from %USERPROFILE%\Favorites ( $IEFavoritesPath) You can run the script as is without input parameters and without changing the following variables. How the script works is described in the Synopsis of the script, so to avoid a lot of redundant text, please read it there :) URL file for each favorite to a JSON string, that you can insert in the Group Policy setting? Here’s a script to automate the proces for you This Group Policy setting requires a JSON formatted text string, where the favorites / bookmarks are defined.īut how do you get from a Favorites folder with one. (In Google Chrome the same setting is called “Managed Bookmarks”)
![microsoft edge chromium favorites location microsoft edge chromium favorites location](https://icdn.digitaltrends.com/image/digitaltrends/edge-download-2-2736x1824.jpg)
Now you are preparing to migrate to the chromium based Edge browser, and you would like to take advantage of the Group Policy setting “Configure Favorites” to prepopulate some favorites, like the users have been used to. If you have been managing Internet Explorer for years, perhaps your organization has provided predefined favorites to the users by populating a subfolder in the Favorites folder.