NTP on a domain controller

This code sets the peerlist to the UK pools, resyncs it up and restarts the w32time server.

w32tm /config /manualpeerlist:"0.uk.pool.ntp.org,0x8 1.uk.pool.ntp.org,0x8 2.uk.pool.ntp.org,0x8 3.uk.pool.ntp.org,0x8" /syncfromflags:manual /reliable:yes /update

w32tm /resync /rediscover
w32tm /query /source
net stop w32time && net start w32time

w32tm /resync /nowait
w32tm /config /syncfromflags:domhier /update
net stop w32time && net start w32time

And on a Hyper-V domain this usually does the trick to get the clock syncing with NTP

w32tm /config /manualpeerlist:"0.uk.pool.ntp.org,0x8 1.uk.pool.ntp.org,0x8 2.uk.pool.ntp.org,0x8 3.uk.pool.ntp.org,0x8" /syncfromflags:manual /reliable:yes /update

w32tm /resync /rediscover
w32tm /query /source
net stop w32time
net start w32time
w32tm /query /configuration

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.