Case Else:

/*** Code’s last stand ***/

Case Else: Killer Whales hunting off the Haida Gwaii (or Queen Charlotte Islands)

Timezones from the Commandline

May 16th, 2008 · No Comments

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.

Tags: Batch Scripts

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment