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
 
Usage:
TZUTIL </? | /g | /s TimeZoneID[_dstoff] | /l>
 
Parameters:
/? 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
be:
<display name>
<time zone ID>
 
Examples:
TZUTIL /g
TZUTIL /s "Pacific Standard Time"
TZUTIL /s "Pacific Standard Time_dstoff"
 
Remarks:
An exit code of 0 indicates the command completed successfully.
 
C:\Windows\system32>

3 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!

  3. Ольга says:

    In Windows, it is easier to change the time zone directly in the graphical interface by clicking the clock icon in the system tray and selecting Change date and time settings . Then you have to click Change Time Zone button, choose a suitable time zone from the list, and then save the changes.

Leave a Reply