Skip to content

Instantly share code, notes, and snippets.

@philoushka
Created April 15, 2015 18:35
Show Gist options
  • Save philoushka/40bbef071375a36dc463 to your computer and use it in GitHub Desktop.
Save philoushka/40bbef071375a36dc463 to your computer and use it in GitHub Desktop.
Windows Logon Script
#disable Chrome's pwd manager
$chromeRegKey = "HKCU:\SOFTWARE\Policies\Google\Chrome"
Set-ItemProperty -Path $chromeRegKey -Name PasswordManagerEnabled -Value 0
# set home button URL
Set-ItemProperty -Path $chromeRegKey -Name HomepageLocation -Value "http://www.trello.com"
#set your start URLs
$chromeUrlsKey = "$ChromeRegKey\RestoreOnStartupURLs"
$startUrls =
"https://tweetdeck.twitter.com",
"https://trello.com",
"https://github.com"
$urlNumber=1
foreach ($url in $startUrls) {
Set-ItemProperty -Path $chromeUrlsKey -Name $urlNumber -Value $url
$urlNumber++
}
#set date and time
Set-ItemProperty -Path "HKCU:\Control Panel\International" -name sShortDate -value "dd-MMM-yyyy"
Set-ItemProperty -Path "HKCU:\Control Panel\International" -name sShortTime -value "HH:mm"
Set-ItemProperty -Path "HKCU:\Control Panel\International" -name sTimeFormat -value "HH:mm:ss"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment