Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


Return to article

JSI Tip 7525. How do I set the Time Zone from the command line?
 

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

RunDLL32 shell32.dll,Control_RunDLL %SystemRoot%\system32\TIMEDATE.cpl,,/Z <Display or Std Value>

where <Display or Std Value> 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\<The Zone Key>.

You can also use:

Control.exe %SystemRoot%\system32\TIMEDATE.CPL,,/Z <Display or Std Value>.

Example:

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

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









Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement