Skip to main content

Configure NTP with w32tm.exe

OBJECTIVE: To configure the Domain Controller to use an external NTP server to keep time reliable and accurate.

STEP 1Open command prompt as an administrator and enter the following command

w32tm.exe /config /manualpeerlist:"0.pool.ntp.org,0x8 1.pool.ntp.org,0x8 2.pool.ntp.org,0x8" /syncfromflags:manual /update
/Syncfromflags:manual—enables synchronization of the NetTime service with an external source

/manualpeerlist:”time.windows.com,0x8 0.pool.ntp.org,0x8 1.pool.ntp.org,0x8″—lists external NTP servers for synchronization.

The 0x8 parameter means that synchronization is performed in the NTP client mode in accordance with the interval suggested by the NTP server.

The following values are allowed for synchronization parameters with external NTP servers:
0x1 — SpecialInterval, use of a special polling interval;
0x2 — UseAsFallbackOnly mode;
0x4 — SymmetricActive, symmetric active mode;
0x8 — Client, send request in client mode.

STEP 2: Now you need to ensure that you set the PDC-Emulator as a reliable source of time 
w32tm /config /reliable:yes

STEP 3
: Now you need to restart tje W32Time service on the PDC
net stop w32time && net start w32time

STEP 4
: Synchronize the time with the following Command
w32tm /resync

Source of information