Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
monkey
- Posts: 1
- Joined: 15 May 2009 07:25
#1
Post
by monkey » 15 May 2009 07:31
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
-
avery_larry
- Expert
- Posts: 391
- Joined: 19 Mar 2009 08:47
- Location: Iowa
#2
Post
by avery_larry » 15 May 2009 10:18
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).