Syncing the Time on Windows Server 2008
You never know what I might write about. Today is the solution to a problem I just discovered on my web server. The server's time was about 10 minutes slow, and I am a stickler for all my systems to have the correct time. Even back in the days of Windows 3.1 I had a program that would sync my computer with the time server in Colorado.
Now we come to the new OS, Windows Server 2008, which apparently did not come preconfigured knowing what time server to sync to. So here is how to get Windows Server 2008 to automatically sync the time on a regular schedule.
- Make sure your computer is set to the correct time zone. Right-click the time in the lower right corner and then click on "Adjust Date/Time", correct time zone if needed.
- Download Atomic Clock Sync 3.0 from http://www.worldtimeserver.com/atomic-clock. There is no installer, just the exe.
- Run Atomic.exe, click the "Synchronization Interval" tab. Set the value for how often you want the computer to resync and click Apply, then click "Sync Now".
Here is where the problem may start. If you received "The command completed successfully", you are done. Goodbye.
If you received "The computer did not resync because no time data was available", go through the steps on the "Repair Service" tab. If it works now, you are done. Goodbye.
If you are still here, maybe what worked for me will work for you. Open a command prompt and type "net time /querysntp", then press Enter. If you get the response "This computer is not currently configured to use a specific SNTP server", this is what happened to me. Proceed with the steps outlined below and hopefully your problem will be resolved.
- Still in the command window, type "w32tm /stripchart /computer:time.windows.com /samples:5 /dataonly" and press Enter.
- Assuming you get back valid numbers, great, proceed to the next step. If not, check your ports or try a different server (see references below).
- Still in the command window, type "w32tm /config /manualpeerlist:time.windows.com /syncfromflags:manual /reliable:yes /update" and press Enter.
- Go back to the "Synchronization Interval" tab in Atomic Clock Sync and press "Sync Now".
If all went well, you are done. If not, try some of the links below for more information.
This may not work in all situations, from my research I found that some situations require a change in group policy or a registry edit. Here are two articles related to older OSes that I did not have to use, but may be useful if the above did not resolve your issue.