How to set TimeZone using Powershell How to set TimeZone using Powershell powershell powershell

How to set TimeZone using Powershell


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"


At least in newer versions of Powershell (5.1 and later), there is a cmdlet. See the docs.

Set-TimeZone "Eastern Standard Time"

Older versions can find the script here.


PowerShell commandtzutil /g - to see current time zonetzutil /l - list of time zonestzutil /s "example" to change time zone

There are other commands to change the time zone I have explained it in my YouTube video https://youtu.be/JvLa5HjEjHM

Hope this will help you!!