Can I have a script to enable bookmark bar and add a bookmark to Chrome for Windows?
A script to enable bookmark bar and add a bookmark to Chrome for WindowsSolved
0 Upvotes
Subscribe
Replies (3)
Oldest First
Oldest First
Newest First
Marked SolutionPending Review
Hexnode Expert
4 months ago
Marked SolutionPending Review
Copy link
Report
Hello @aakash-shah,
We’ve taken it up with our team and they’re working on the script at the moment. We’ll get back to you with an update at the earliest.
Best regards,
Chloe Edison
Hexnode UEM
0 Upvotes
Reply
Marked SolutionPending Review
Participant
4 months ago
Marked SolutionPending Review
Copy link
Report
Thanks Chloe.
0 Upvotes
Reply
Marked SolutionPending Review
Hexnode Expert
3 months ago
Marked SolutionPending Review
Copy link
Report
Hello @aakash-shah,
Here is a script to enable the bookmark bar and add a bookmark to Chrome on Windows devices:
Script to enable the bookmark bar and add a bookmark to Chrome on Windows
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
#Enable bookmark bar and add bookmarks in chrome $registryPath = 'HKLM:\Software\Policies\Google\Chrome' $enableBookmarkBar = 1 #set as 0 to disable it. if(-not(Test-Path $registryPath)) { New-Item -Path $registryPath -Force | Out-Null } #setting BookmarkBarEnabled registry name Set-ItemProperty -Path $registryPath -Name BookmarkBarEnabled -Value $enableBookmarkBar -Force | Out-Null Write-Host "Chrome policy key created and bookmark bar enabled." #add required bookmarks $bookmarkJson = '[ { "toplevel_name": "My managed bookmarks folder" }, { "name": "Google", "url": "google.com" }, { "name": "Youtube", "url": "youtube.com" }, { "children": [ { "name": "Chromium", "url": "chromium.org" }, { "name": "Chromium Developers", "url": "dev.chromium.org" } ], "name": "Chrome links" } ]' Set-ItemProperty -Path $registryPath -Name ManagedBookmarks -Value $bookmarkJson -Force | Out-Null Write-Host "ManagedBookmarks registry key created and bookmarks added." |
Best regards,
Chloe Edison
Hexnode UEM
0 Upvotes
Reply
-
Expand
Copy link
Report
Scroll to top