How to set time zone in command line in windows 7

April 13th, 2009

Windows 7 System admins will appreciate the new command line tzutil.exe utility, which will lets you set a PC’s time zone from scripts. If you wanted to set a PC to Pacific Standard Time, for example, just use the following command:

tzutil /s "Pacific Standard Time"

The command “tzutil /g” displays the current time zone, “tzutil /l” lists all possible time zones, and “tzutil /?” displays details on how the command works.

C:\Windows\system32>tzutil /?
Windows Time Zone Utility
TZUTIL </? | /g | /s TimeZoneID[_dstoff] | /l>
/? Displays usage information.
/g Displays the current time zone ID.
/s TimeZoneID[_dstoff]
Sets the current time zone using the specified time zone ID.
The _dstoff suffix disables Daylight Saving Time adjustments
for the time zone (where applicable).
/l Lists all valid time zone IDs and display names. The output will
<display name>
<time zone ID>
TZUTIL /s "Pacific Standard Time"
TZUTIL /s "Pacific Standard Time_dstoff"
An exit code of 0 indicates the command completed successfully.

2 Responses to “How to set time zone in command line in windows 7”

  1. Fotograf bryllup says:

    My brother suggested I might like this website. He was entirely right. This post actually made my day. You cann’t imagine simply how much time I had spent for this info! Thanks!

  2. world clock says:

    How to set time zone in command line in windows 7 Windows 7 Home – just great!

Leave a Reply