When it comes to configuring your Primary Domain Controller (PDC) or local Network Time Protocol (NTP), you’ll find a a lot of information online.
But in a nutshell this is what you have to do:
w32tm /config /manualpeerlist:"<IPTIMESERVER>,0x1" /syncfromflags:manual /reliable:yes /update
net stop w32time
net start w32time
w32tm /resync /rediscover
But if the timeserver isn’t reliable you get the error:
The fix is really easy. Remove the /reliable:yes
option
w32tm /config /manualpeerlist:"<IPTIMESERVER>,0x1" /syncfromflags:manual /update
And then after the w32tm /resync /rediscover
:
Off course you only want to remove the /reliable:yes
in a lab environment. Otherwise change the NTP server to a reliable one.