Friday, March 07, 2008

Set NTP Time on Windows Server 2003

When you have multiple servers it is best to only have one going out to the internet for NTP and the rest of your servers feeding off that box (as long as its reliable) to reduce network traffic and NTP traffic. Below i list all the commands i found handy in doing this, please note that server.ip is the ip address of the box that is getting time from the internet.
These commands can be as useful when trying to change the ntp server that your windows servers use or to check what server they use.

———————————————————————————————-
Short List of Commands
net time /setsntp:server.ip
net stop w32time
net start w32time
net time /querysntp
net time \\server.ip


Example commands in Action
net time /setsntp:server.ip
The command completed successfully.


net stop w32time
The Windows Time service is stopping.
The Windows Time service was stopped successfully.


net start w32time
The Windows Time service is starting.
The Windows Time service was started successfully.


net time /querysntp
The current SNTP value is: server.ip

The command completed successfully.

net time \\server.ip
Current time at \\server.ip is 24/07/2007 5:18 PM

The command completed successfully.


Posted by admin in • Windows 2003 Server
Permalink
Page 1 of 1 pages