/build/static/layout/Breadcrumb_cap_w.png

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)

Be the first to answer this question

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ