So I recently set up a Server 2022 eval on my lab to work with vSphere which requires DNS running before “installing” vCenter. I did my usual process which included setting w32tm as follows:
w32tm /config /manualpeerlist:172.30.0.2 /syncfromflags:manual /reliable:yes /update
I then stopped and started the service, also had some reboots in there but when I querried the status, it showed everything working. The above IP address is my local GNSS locked NTP server.
Last night I got AD DS installed and set up DNS and DHCP in preparation for the next step with vSphere.
Today I did the MS updates which of course requires a reboot, and I found in my logs that the system was trying to sync from DOMHIER (which the first AD can not do). Thinking that was strange, I checked w32tm and the query said it was all good and syncing to the manual peer list.
I ended up setting w32tm back up with the above commands, checked the status, then reboot (twice). the system error is gone so I know it worked OK.
What I’m wondering is if there is a better tool to set up the time for the domain, something that will work properly after creating the domain? Otherwise I just need to remember that I need to config w32tm after the AD DS role is installed and configured.