Page 1 of 1

need a bat file to configuring system date and time

Posted: 15 May 2009 07:31
by monkey
hello all,

:roll: please help me come up with a bat file that can set my windows server 2008 date and time to today's date.


phi

Posted: 15 May 2009 10:18
by avery_larry
You mean like this?

Code: Select all

net time /setsntp:timeserver

net start W32Time


where timeserver is an ip or hostname of an NTP time server (there are lots of public atomic clocks or you could have a local NTP server).

Posted: 18 May 2009 08:25
by t4mack
here's a website with a sh!t load of batch files
http://www.bookcase.com/library/softwar ... batch.html