How do I set the timezone from command line ?

Eduard Florinescu picture Eduard Florinescu · May 20, 2013 · Viewed 58.6k times · Source

How can I set the timezone in Windows from command line or from a batch file?

Do I need to use powershell or cscript?

Answer

Ionică Bizău picture Ionică Bizău · May 20, 2013

The command line utility that helps you change the time zone in Windows 7 is tzutil.exe and is known as Windows Time Zone Utility. This is a great tool for all the people who prefer working from the command prompt.

Use the /s parameter to set the time zone:

tzutil /s "universal standard time"

Use the /g parameter to get the time zone:

tzutil /g

Use the /l parameter to list the valid time zones.

tzutil /l

[source]