How can I use Powershell and SCCM to Import HTML bookmarks into Chrome?
I've been tasked with packaging a large amount of shortcuts and bookmarks into one deployment. I'm using Powershell to push it all out, but I can't find a way to import a HTML file into Chrome. All the files get to their intended locations but the struggle is coming from the actual import function. Has anyone ever come across this issue?
I'm sure I can clean this up to look nicer but right now I just need to make sure it works. Here is the script as it stands:
$PSScriptRoot = ($MyInvocation.MyCommand.Path | Split-Path | Resolve-Path).ProviderPath
get-childitem "$PSScriptRoot" -filter *.url -recurse | copy-item -destination "$ENV:UserProfile\Favorites"
get-childitem "$PSScriptRoot" -filter *.rdp -recurse | copy-item -destination "$ENV:UserProfile\Desktop"
get-childitem "$PSScriptRoot" -filter *.lnk -recurse | copy-item -destination "$ENV:UserProfile\Desktop"
get-childitem "$PSScriptRoot" -filter *.html -recurse | copy-item -destination "$ENV:UserProfile\AppData\Local\Google\Chrome\User Data\Default"
0 Comments
[ + ] Show comments
Answers (0)
Please log in to answer
Be the first to answer this question