I’ve a list of common favourites used within a small team. I have a script which gives them options and one of the options (I have an interactive menu which works OK) I wish to give them is

“Option ? :- Copy Common Favourites to EDGE & Chrome”

Where would I copy the html file to? I have it on a shared drive location. I’ve tried:-

Copy-Item "\\SHARE\Favourites\Favourites.html" -Destination "$env:LOCALAPPDATA\Google\Chrome\User Data\Default"
Copy-Item "\\SHARE\Favourites\Favourites.html" -Destination "$env:LOCALAPPDATA\Microsoft\Edge\User Data\Default"
11 Spice ups

It looks like you have both destination paths correct. However, your source file cannot be an .html file. Both Chrome and Edge use a file named “bookmarks” with no extension and is formatted in a specific way. If you want to build a list of bookmarks, I’d recommend starting with a fresh copy of Chrome and Edge and bookmark whatever sites you need. Then copy those “bookmarks” files from that machine to your share. Finally, you can copy from the share to each destination.

Copy-Item "\\SHARE\EdgeFavourites\bookmarks" -Destination "$env:LOCALAPPDATA\Google\Chrome\User Data\Default"
Copy-Item "\\SHARE\ChromeFavourites\bookmarks" -Destination "$env:LOCALAPPDATA\Microsoft\Edge\User Data\Default"
1 Spice up

How would I remove the formatting or format it so that it has no extension? I’ve recently installed chrome/edge on my laptop so has recently bookmarks on chrome/edge - whats the best way to copy these “bookmarks” to the share? If I copy them one by one it copies them as internet shortcuts and if I export them it exports as an html file.

As I was trying to explain, you simply go to the folders on the the source machine where you setup your bookmarks. You go into each folder and copy out the bookmarks file which will have the proper format of the file. You put those files on the share.

For Chrome:
C:\Users*username*\AppData\Local\Google\Chrome\User Data\Default

For Edge:
C:\Users*username*\AppData\Local\Microsoft\Edge\User Data\Default

1 Spice up

Spot on bud! Understand you now. Thanks… that 100% worked and found an option for them to copy bookmarks from old machine if they want to use existing favourites.

1 Spice up