Setting timezone on PCs using a batch file

 

For some testing recently I had to reset all our test PCs to use UTC (GMT) instead of BST.
This meant that our LoadRunner log files and test results would tie-in with the log files on the UNIX systems which we were testing.
It’s worth noting that W3C log files (web server loig files) all use UTC time as well, so this is useful if you want to synchronise your times with the rest of the “non-Windows” world.
Use this command to set your timezone to UTC…. (tested on Windows XP and Windows 2003 server).
[code]RunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,,/Z (GMT) Coordinated Universal Time[/code]

For some testing recently I had to reset all our test PCs to use UTC (GMT) instead of BST.

This meant that our LoadRunner log files and test results would tie-in with the log files on the UNIX systems which we were testing.┬áIt’s worth noting that W3C log files (web server loig files) all use UTC time as well, so this is useful if you want to synchronise your times with the rest of the “non-Windows” world.

 

Use this command to set your timezone to UTC…. (tested on Windows XP and Windows 2003 server).

RunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,,/Z (GMT) Coordinated Universal Time

 

Author: Richard Bishop

http://about.me/richard_bishop