/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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   [ - ] Hide Comments

Comments

Please log in to comment

There are no answers at this time
Answer this question or Comment on this question for clarity

Answers

Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share