Loading

Monday, August 31, 2009

Set the Time Zone from the command line on Windows computers

To set the Time Zone from the command line, use:

RunDLL32 shell32.dll,Control_RunDLL %SystemRoot%\system32\TIMEDATE.cpl,,/Z

where is the data value of the Display Value Name, or the Std Value Name ,at HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version\Time Zones\.

You can also use:

Control.exe %SystemRoot%\system32\TIMEDATE.CPL,,/Z .

Example:
RunDLL32 shell32.dll,Control_RunDLL %SystemRoot%\system32\TIMEDATE.cpl,,/Z US Eastern Time

NOTE: You do NOT encapsulate the time zone string in quote (") marks.


See also

No comments:

Post a Comment