I'd like to set the time source on my Hyper-V hosted Windows Server 2022 member server to VM IC Time Synchronization Provider
. Currently it's at Local CMOS Clock
.
It was set to PDC.DOMAIN.local
, but I wanted it to get its time from the host instead of the PDC. So, based on this answer, I ran these commands:
net stop w32time
w32tm /unregister
w32tm /register
net start w32time
w32tm /config /syncfromflags:NO /update
net stop w32time
net start w32time
At that point w32tm /query /source
started returning Local CMOS Clock
. I left it alone overnight thinking it'd straighten itself out, as it had done under the same scenario on a Windows 10 Enterprise VM, but I had no such luck this morning. The Win10 VM is still (correctly) reporting a source of VM IC Time Synchronization Provider
, but the server is (incorrectly) reporting Local CMOS Clock
.
How can I set my VM-hosted server to get its time from the host?