Sunday, September 14, 2014

How to set Date and Time using Time Server

My computer is an old one.  Now the battery in the motherboard is not keeping the system date and time properly.  So I need to set date and time every time before browsing the internet.
While searching I got a very good answer to my query.

http://forums.techguy.org/all-other-software/985824-how-write-script-change-date.html


@echo off
w32tm /config /sychfromflags:MANUAL /manualpeerlist:time.nist.gov
net stop w32time && net start w32time
net start w32time && net start w32time
w32tm /config /update
w32tm /resync /force



 Then configure schedule to execute the script


Hope this is what you looking for.  All the best

No comments: