Blogs‎ > ‎

Configuring Windows Time Service on Windows Server 2012

posted 31 Jul 2015, 16:36 by Andrew at Lycom   [ updated 31 Jul 2015, 16:36 ]
You have to dig around a bit to find a simple guide to setting up the Windows Time Service on and AD Domain Controller. The Technet page is typically factual, but not much help.

Fortunately I found this, which lead me to this. From which I used this script:

Net Stop W32Time 
W32tm /config /syncfromflags:manual /manualpeerlist:"<ip addresses>" 
W32tm /config /reliable:yes 
Net Start W32Time 
W32tm /config /update 
W32tm /resync

There is a note in the comments about checking that the GPO for Windows Time is 'Not Configured' so that it doesn't interfere with the default client behaviour in an AD domain:

Computer Configuration > policies > Administrative Templates >  System > Windows Time Service > Time Providers and Set “Configure Windows NTP Client” to “Not Configured”.

Which worked for me. I checked with:

w32tm /query /source

pool.ntp.org

as opposed to 'cmos', which is what I had before (i.e. the local clock of the server). You can further check:

w32tm /query /status

Leap Indicator: 0(no warning)
Stratum: 3 (secondary reference - syncd by (S)NTP)
Precision: -6 (15.625ms per tick)
Root Delay: 0.0829262s
Root Dispersion: 0.0585325s
ReferenceId: 0x8FD210C9 (source IP:  143.210.16.201)
Last Successful Sync Time: 01/08/2015 00:27:17
Source: pool.ntp.org
Poll Interval: 8 (256s)

which gives me confidence that it is picking up the time source.