Changing Windows timezone from the command line

To change the timezone from the command line in Windows, type the following at the prompt and press enter. This will open up the timezone setting window from the Control Panel.

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

In a limited access account, (all members of the USER group) you can run this command using Runas.

runas /u:%computername%\\administrator cmd

followed by

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

This method works in both XP and Vista.

UPDATE: Or you can also simply type \’timedate.cpl\’ on the command line as an admin to bring up the control panel applet.

[src]

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *