Thursday, September 17, 2015

Synchronize time with external NTP server on Windows Server

Refer to Synchronize time with external NTP server on Windows Server 2008 (R2).

I executed the following commands on PDC (Windows Server 2012 R2) and successfully assigned three external NTP servers, and synced time.

A. Change time server at external net on PDC:
> net stop w32time
> w32tm /config /syncfromflags:manual /manualpeerlist:"0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org"
> w32tm /config /reliable:yes
> net start w32time

B. Check for configuration
> w32tm /query /configuration

C. Check for added NTP server(s):
> w32tm /query /peers

D. Time sync command on other server(s) and client(s).
> w32tm /resync

E. Clear/Initialize time service settings
> net stop w32time
> w32tm /unregister
> w32tm /register
> net start w32time

Unregistering will remove the whole w32tm key from the registry
while registering will create a fresh key filled with the windows defaults.


It works on 9/17/2015!!

No comments:

Post a Comment