Created
April 16, 2018 00:06
-
-
Save andrewbbrown/3136ee6ce9a0ac860c0ed7c13fdade61 to your computer and use it in GitHub Desktop.
Boxstarter-Win-SetCentralTimeZone.ps1
This file contains hidden or 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
| try { | |
| # Boxstarter options | |
| $Boxstarter.RebootOk=$true | |
| $Boxstarter.NoPassword=$false # Is this a machine with no logon password? | |
| $Boxstarter.AutoLogin=$true | |
| Write-BoxstarterMessage "Ensuring Time Zone is set to Central Standard Time" | |
| & C:\Windows\system32\tzutil /s "Central Standard Time" | |
| } | |
| catch { | |
| Write-ChocolateyFailure 'Boxstarter Error: ' $($_.Exception.Message) | |
| throw | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment