Configure time services for a DC running on a VM is different from physical server. Assuming the VM/DC time sync from the host machine is turned on in the Integration Services, please follow these steps.
- On your Domain Controller add the following registry key:
reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\VMICTimeProvider /v Enabled /t reg_dword /d 0
This ensures that the DC only syncs its time from the host OS when being restored from a saved state.
2. run these commands:
net stop w32time
w32tm /unregister
w32tm /register
Net start w32time
w32tm /config /update /manualpeerlist:”0.pool.ntp.org,0x8 1.pool.ntp.org,0x8 2.pool.ntp.org,0x8 3.pool.ntp.org,0x8″ /syncfromflags:MANUAL
w32tm /config /update
net stop w32time && net start w32time
w32tm /resync /rediscover
3. Run these commands to check and test the configuration:
w32tm /query /status
w32tm /query /source
w32tm /query /peers
w32tm /query /configuration