Windows Clock/NTP Sync

For awhile I noticed that my desktop’s clock was off by about an hour and some and this finally bugged me enough to find the cure. Essentially it was my active directory server’s clock was off as well and that’s where the desktop’s clock pulls its time from. So with a few google hits I found how to force a refresh of the clock. In command line simply punch in:

w32tm /resync

Unfortunately my Windows 2008 R2 server only spit out this error after that:

C:\Users\Administrator> w32tm /resync
Sending resync command to local computer
The computer did not resync because no time data was available.

After googling around I then found a series of commands to sync to another NTP server:

C:\>netdom /query fsmo
C:\>net stop w32time
C:\> w32tm /config /syncfromflags:manual /manualpeerlist:"0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org"
C:\>w32tm /config /reliable:yes
C:\>net start w32time
C:\>w32tm /query /configuration

Following this all clocks were running on time for once.

Sources:

http://defaultreasoning.wordpress.com/2009/11/16/synchronize-time-with-external-ntp-server-on-windows-server-2008-r2/
http://www.howtogeek.com/howto/windows-vista/sync-your-clock-with-internet-time-servers-from-the-vista-command-prompt/

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *