If the time in Windows Server is not correct, open PowerShell and execute the following lines
1 2 |
w32tm /config /manualpeerlist:"0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org",0x8 /syncfromflags:MANUAL w32tm /config /update |
Open the registry and reduce the time in the values of the following DWORD to 1800 (decimal)
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\MaxNegPhaseCorrection
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\MaxPosPhaseCorrection
Restart the service
1 2 3 |
net stop w32time net start w32time w32tm /resync /nowait |
Finally we check if it has got the correct setting
1 |
w32tm /query /status |
More information: https://docs.microsoft.com/en-us/windows-server/networking/windows-time-service/windows-time-service-tools-and-settings