need a bat file to configuring system date and time

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
monkey
Posts: 1
Joined: 15 May 2009 07:25

need a bat file to configuring system date and time

#1 Post by monkey » 15 May 2009 07:31

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

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).

t4mack
Posts: 4
Joined: 15 May 2009 12:55

#3 Post by t4mack » 18 May 2009 08:25

here's a website with a sh!t load of batch files
http://www.bookcase.com/library/softwar ... batch.html

Post Reply