This is an old revision of the document!
In an Active Directory domain-based network, this should only have to be done on the PDC.
To configure a Windows 2000 Server for Network Time Protocol (NTP), enter the following commands as an administrator:
net time /setsntp:pool.ntp.org net stop w32time w32tm -once net start w32time
Windows Server 2003 Forest Root Domain Controller servers are configured like this:
W32tm /config /manualpeerlist:pool.ntp.org /syncfromflags:manual W32tm /config /update W32tm /resync
The default sync interval for the Windows Time Service is three times a day. If that isn't good enough, you can adjust it…but it takes a registry edit.
net time /domain:yourdomainname /set /yes
Locate the domain controller where you will configure network time:
netdom /query fsmo w32tm /query /source
Then, on the indicated domain controller:
W32tm /config /manualpeerlist:"0.us.pool.ntp.org,1.us.pool.ntp.org,2.us.pool.ntp.org" /syncfromflags:manual /reliable:yes W32tm /resync
If you get the error
The computer did not resync because no time data was available.
, try a reboot of the DC and check that NTP traffic is permitted in the firewall (UDP/123).
If your time is off by too much (more than 3600 seconds), you'll have to set the time manually with the Date and Time applet.
w32tm /query /configuration
Check the Event Viewer for any error messages.
If for some reason you need to clear the configuration or start over:
net stop w32time w32tm /unregister w32tm /register net start w32time
w32tm /monitor
net stop w32time w32tm /unregister w32tm /register w32tm /config /manualpeerlist:"0.us.pool.ntp.org 1.us.pool.ntp.org" /syncfromflags:manual /reliable:yes net start w32time w32tm /query /status /verbose w32tm /query /source w32tm /query /peers w32tm /query /configuration
net stop w32time w32tm /unregister w32tm /register net start w32time w32tm /config /syncfromflags:domhier /reliable:NO w32tm /config /update w32tm /resync w32tm /query /status /verbose w32tm /query /source w32tm /query /peers w32tm /query /configuration
The most accurate way to keep guest operating system time synchronized with real time is probably to use the VMware Tools or XenServer Tools time synchronization functions.
http://www.virtualbox.org/manual/ch09.html#idp13775264
Install the guest additions or use NTP.
To enable VMware Tools time synchronization in the guest:
It's a good idea to run a time synchronization tool on the virtualization host, for best accuracy.
0.us.pool.ntp.org 1.us.pool.ntp.org 2.us.pool.ntp.org 3.us.pool.ntp.org
Open UDP port 123 on the firewall, both directions.