/build/static/layout/Breadcrumb_cap_w.png
09/11/2017 2024 views
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

Comments


There are no answers at this time

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share