Skip to content

Instantly share code, notes, and snippets.

@philoushka
Created April 14, 2015 17:59
Show Gist options
  • Save philoushka/6c7f4402cc4b50b494e1 to your computer and use it in GitHub Desktop.
Save philoushka/6c7f4402cc4b50b494e1 to your computer and use it in GitHub Desktop.
Override Chrome settings locked by Group Policy
#disable Chrome's pwd manager
$regKey = "HKCU:\SOFTWARE\Policies\Google\Chrome"
Set-ItemProperty -Path $regKey -Name PasswordManagerEnabled -Value 0
#set your start URLs
$regKey = "HKCU:\SOFTWARE\Policies\Google\Chrome\RestoreOnStartupURLs"
$startUrls =
"https://tweetdeck.twitter.com",
"https://trello.com",
"https://github.com"
$urlNumber=1
foreach ($url in $startUrls) {
Set-ItemProperty -Path $regKey -Name $urlNumber -Value $url
$urlNumber++
}
# set home button URL
$regKey = "HKCU:\SOFTWARE\Policies\Google\Chrome"
Set-ItemProperty -Path $regKey -Name HomepageLocation -Value "http://www.example.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment