How to set TimeZone using Powershell
-
26-09-2019 - |
Question
How can I set TimeZone using Powershell, on a Windows Server 2008 R2 target machine?
Solution
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"
OTHER TIPS
I don't have Windows at hand to test, but here's the post that suggests a solution:
Note that they mention tzutil.exe
is available in Windows 7 - might be available in WS 2008 R2?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow