Created
April 15, 2015 18:35
-
-
Save philoushka/40bbef071375a36dc463 to your computer and use it in GitHub Desktop.
Windows Logon Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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