hello all,
please help me come up with a bat file that can set my windows server 2008 date and time to today's date.
phi
need a bat file to configuring system date and time
Moderator: DosItHelp
-
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa
You mean like this?
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).
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).
here's a website with a sh!t load of batch files
http://www.bookcase.com/library/softwar ... batch.html
http://www.bookcase.com/library/softwar ... batch.html