OS Guide: Set up Domain Time on PDCe and Member Domain Controllers

Proper domain time is critical to so many aspects of an Active Directory domain.

The following steps should be run in an elevated Command Prompt with steps for the Primary Domain Controller Emulator (PDCe) and member domain controllers.

Note that there is a set for US locations and Canadian locations respectively.

REM Time Setup

REM PDCe USA
w32tm /config /syncfromflags:manual "/manualpeerlist:0.us.pool.ntp.org,0x1 1.us.pool.ntp.org,0x1 2.us.pool.ntp.org,0x1 3.us.pool.ntp.org,0x1" /reliable:yes
w32tm /config /update
net stop w32time && net start w32time
w32tm /resync /force
w32tm /query /source

REM PDCe Canada
w32tm /config /syncfromflags:manual "/manualpeerlist:0.ca.pool.ntp.org,0x1 1.ca.pool.ntp.org,0x1 2.ca.pool.ntp.org,0x1 3.ca.pool.ntp.org,0x1" /reliable:yes
w32tm /config /update
net stop w32time && net start w32time
w32tm /resync /force
w32tm /query /source

REM Secondary DCs
w32tm /config /syncfromflags:domhier /reliable:no /update
net stop w32time && net start w32time
w32tm /resync /force
w32tm /query /source