Timezones need to be set, sometimes. We move machines all over the country, and they need to be right when they get there. We’ve used various scripts in various languages to set the time and the timezones, but there is also a hard-to-find command line that will accomplish the task.
control.exe timedate.cpl,,/Z Eastern Standard Time |
The time zone string is exactly the same as the one listed in the timezone applet. You can see a list of them in the registry under this key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones
Each timezone listed has a pair of subkeys names Dlt and Std, which are the strings for Standard time and Daylight Savings Time in that zone.
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment