JSI Tip 7525. How do I set the Time Zone from the command line?
Jerold Schulman
December 7, 2003
1 Min Read
To set the Time Zone from the command line, use:
RunDLL32 shell32.dll,Control_RunDLL %SystemRoot%system32TIMEDATE.cpl,,/Z <Display or Std Value>
where is the data value of the Display Value Name, or the Std Value Name ,at HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrent VersionTime Zones.
You can also use:
Control.exe %SystemRoot%system32TIMEDATE.CPL,,/Z <Display or Std Value>.
Example:
RunDLL32 shell32.dll,Control_RunDLL %SystemRoot%system32TIMEDATE.cpl,,/Z US Eastern Standard Time
NOTE: You do NOT encapsulate the time zone string in quote (") marks.
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like