I am on a roll tonight with command line info! This time, we will learn how to execute a command from the Windows command line that will change the time zone on the fly.

To change the time zone to Central Standard Time in Windows XP, execute this command:

RunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,,/Z Central Standard Time

To change the time zone to Mountain Standard Time in Windows Vista or Windows 7, execute this command:

TZUTIL /s “Mountain Standard Time”

So, that is pretty much it. There isn’t much to think about here. Just remember to change the time zone to the correct one before executing the command.