Windows Domain Time Sync
This will outline the pieces needed to setup the Primary Domain Controller as the domain stratum server and configure your domain members to use it as the time source on the domain.
IMPORTANT: Remember to change your time zone in the code below.
Time Zone Name List: https://ss64.com/nt/timezones.html
Wait, you don’t know which domain controller is the PDC? No worries, I’ve got you covered.
Run one (or both if you want) of these commands on any domain controller.
For the “traditional” command-line folk: netdom query fsmo
For the “new-age” PowerShell peeps: Get-ADDomain $env:USERDNSDOMAIN | Format-Table PDCEmulator
Step 1: Primary Domain Controller
Open an administrative command prompt and run the following.
If you encounter any errors, these should be resolved before continuing to Step 2.
net stop w32time && w32tm /unregister && w32tm /register && net start w32time
tzutil /s "Mountain Standard Time"
w32tm /config /manualpeerlist:"0.pool.ntp.org,0x8 1.pool.ntp.org,0x8 2.pool.ntp.org,0x8" /syncfromflags:manual /reliable:yes /update
w32tm /resync
net stop w32time && net start w32time
Step 2: Domain Controller’s other than PDC:
Open an administrative command prompt and run the following.
net stop w32time && w32tm /unregister && w32tm /register && net start w32time
tzutil /s "Mountain Standard Time"
w32tm /config /syncfromflags:domhier /update
w32tm /resync
net stop w32time && net start w32time
Check the time sync status using this command from an administrative command prompt.
w32tm /query /status
Should a member server not receive the correct time, you can run “Step 2” on it to reset the time source and resync it to the domain time server.