Quick and easy way to set timezone from command line in Windows 2003, XP and 2000.
CONTROL.EXE TIMEDATE.CPL,,/Z Eastern Standard Time
CONTROL.EXE TIMEDATE.CPL,,/Z Central Standard Time
CONTROL.EXE TIMEDATE.CPL,,/Z Mountain Standard Time
CONTROL.EXE TIMEDATE.CPL,,/Z Pacific Standard Time
These are a little longer but they do the same thing.
RunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,,/Z Eastern Standard Time
RunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,,/Z Central Standard Time
RunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,,/Z Mountain Standard Time
RunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,,/Z Pacific Standard Time
See also Set Time Zone From Command Line in Windows 7 and Windows 2008
Keywords:
change time zone from command line windows xp
windows 2003 change timezone
command to get time zone in win xp
One reply on “Set Time Zone From Command Line in Windows 2003, XP and 2000”
CONTROL.EXE TIMEDATE.CPL,,/Z W. Europe Standard Time
My tests showed that this does not work if you use the names that are shown in the XP timezone dialog (GMT+0100) Windhuk). It seems that those are only display names.
When I used the names for the subkeys of
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionTime Zones
it worked well. Those names are all English and it seems that XP needs that.