Windows server sync with external NTP Time Source

As AD servers provide time to machines in a domain it is important to have AD servers synchronized with an realiable time source. If you know the project http://www.pool.ntp.org/en you can find NTP servers that are part of this “cluster” and are near you. As I live in the US there is a pool called us.pool.ntp.org in which has US NTP servers.

On AD server that are running Windows server 2008 / 2008 R2 and above you should run command prompt with administrative rights (right click / run as administrator).

First check the difference between your server and external time source (in my example us.pool.ntp.org)

Command: w32tm /stripchart /computer:us.pool.ntp.org /samples:5 /dataonly
Example:
C:\>w32tm /stripchart /computer:us.pool.ntp.org /samples:5 /dataonly
Tracking us.pool.ntp.org [173.230.144.109:123].
Collecting 5 samples.
The current time is 24.6.2011 13:29:08.
13:29:08, +08.8351541s
13:29:10, +08.7976694s
13:29:12, +08.8065559s
13:29:14, +08.7534768s
13:29:16, +08.7956427s

Configure your server to use external NTP time source for sync:

Command: w32tm /config /manualpeerlist:us.pool.ntp.org,0×8, /syncfromflags:manual /update /reliable:yes
 
Example:
C:\>w32tm /config /manualpeerlist:us.pool.ntp.org,0×8, /syncfromflags:manual /update
The command completed successfully.
Configure non-DC’s to use DC’s as time source for sync:
Command: w32tm /config /syncfromflags:domhier /update
 

Force sync immediately:
Command: w32tm /resync

Example:
C:\>w32tm /resync
Sending resync command to local computer
The command completed successfully.

I will now retry the first command to see the results:

C:\>w32tm /stripchart /computer:us.pool.ntp.org /samples:5 /dataonly
Tracking us.pool.ntp.org [173.230.144.109:123].
Collecting 5 samples.
The current time is 24.6.2011 13:19:20.
13:19:20, +00.0485657s
13:19:22, +00.0415741s
13:19:24, +00.0380984s
13:19:26, +00.0342493s
13:19:28, +00.0310221s
Updated: December 11, 2016 — 12:50 am

Leave a Reply

ETPS.net © 2012-2016 Frontier Theme