Configure NTP on Windows Time Service on Windows Server running Active Directory

Sometimes ago I needed to change NTP setting on a Windows Server which is running active directory (AD) service. Not sure why the usual way to set the NTP on Windows 7 or non-AD servers via GUI is not an option. It simply doesn’t have a GUI for you! Anyway after some Google here is the command I used. Assume the NTP server is 192.168.0.150.

w32tm /config /update /manualpeerlist:192.168.0.150,0x9 /syncfromflags:MANUAL /reliable:YES

Then force resync from the NTP source so that the source can be displayed correctly in the next command.

w32tm /resync

Finally double check if the NTP source is configured correctly

w32tm /query /source

The 0x9 flag is important as I can’t make it work without that. I still not sure what the flag does but according to the article Windows Time Service Tools and Settings this mark the server as Always time server and Automatic reliable time server.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s