Tuesday, July 3, 2012

Automatically sync Windows time with Internet at boot

If you want Windows to sync with its Internet time servers at boot (e.g. your CMOS battery died and you're too lazy to replace it), put the following into a batch file and put it in the All Users Start Up folder:

fix-time.bat:
net start w32time 
w32tm /resync /force


Put it in the All Users startup folder:
1) Right click on Start Menu -> All Programs -> Start Up and choose Explore All Users
2) Copy fix-time.bat into that folder