Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set TimeZone using Powershell

How can I set TimeZone using Powershell, on a Windows Server 2008 R2 target machine?

like image 551
stacker Avatar asked Nov 20 '10 22:11

stacker


1 Answers

This is how I do it in setup scripts...although our AD infrastructure would set this when the machine joins the domain anyway...I like to be thorough in my scripting :)

%windir%\system32\tzutil /s "Eastern Standard Time"
like image 101
Max_Steve Avatar answered Sep 23 '22 15:09

Max_Steve