Category filter

Script to configure Chrome managed bookmarks for Windows

A bookmark allows users to gather their important or frequently visited web pages under a single location within a web browser. This enables users to access these specific web pages with a simple click directly from their browser’s homepage. As an IT administrator, you can create and organize managed bookmarks, giving users quick access to relevant web resources when they’re signed in. Users cannot remove them from the browser. To configure Chrome managed bookmarks for Windows, you can use the script provided in this document. IT administrators can use Hexnode’s Execute Custom Script remote action to deploy the following PowerShell scripts to a group of Windows devices remotely.


The sample scripts provided below are adapted from third-party open-source sites.


Adding bookmarks to the Google Chrome browser

The following script modifies the Windows registry to enable bookmark bar in the Google Chrome browser by setting the value of the key “BookmarkBarEnabled” to ‘1’. A series of bookmarks can be listed under this registry with a name and a designated URL. A bookmark folder can also be created using the ‘children’ key in the script to group similar types of bookmarks together.

The above script creates a bookmark bar named “My managed bookmarks folder” and adds two bookmarks named Google and YouTube with their designated URLs. It also creates a bookmark folder in the list named ‘Chrome links’ to contain two bookmarks related to Chrome. The script adds the list of bookmarks to the registry using a JSON key $bookmarkJson. The bookmark bar can be disabled by setting the value of the variable $enableBookmarkBar to 0. The enabled bookmarks bar and any added bookmarks can be viewed in the top-left corner of the Google Chrome browser on Windows devices.

Create Chrome managed bookmarks folder for Windows

Remove bookmarks from Google Chrome browser

The following script can be used to clear the registry values set by the previous script, thereby removing all the added bookmarks. 

The script first checks if any bookmarks are present in the registry. If bookmarks exist, the script deletes the registry entries and displays the message “ManagedBookmarks registry key deleted and bookmarks restored to default.” If no bookmarks are found, the script displays the message “There are currently no bookmarks present that can be deleted.”


  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

  • Sample Script Repository