Time server configuration in Hyper-V

I had issues with wrong system time on freshly installed environment syncing from Hyper-V host (getting from server’s BIOS). My domain controller was installed on Hyper-v host as virtual machine.

First I changed the Integration services in Domain Controller Virtual Machine settings and unchecked Time synchronization.



Then I logged in to Domain Controller and configured master time server as pool.ntp.org

w32tm /config /manualpeerlist:pool.ntp.org /syncfromflags:manual /reliable:yes /update

On second DC, I have disabled Time synchronization in Integration services and ran following command:

w32tm /config /syncfromflags:domhier /update

On all other servers,  I resynced time with following command:

w32tm.exe /resync /rediscover

To check status or time source you can use following:

w32tm /query /status

w32tm /query /source