Windows – Fix Windows Server 2012 R2 system time

timewindowswindows-server-2012-r2

I have managed many Windows servers for several years, but I have never experienced anything like this:

We have a Windows Server 2012 R2 running as virtual machine on an Ubuntu Server with KVM.

In the Windows "Date and Time" settings, I have the correct time zone and set the correct time. But after some hours when I connect back to the server, the time is wrong by 2 hours (-2 hours). Even deactivating "Internet Time" (auto-sync with the time server) does not help.

When I go to the "Internet Time" tab and click the button to manually update the time with the time server, it shows the correct time as well. But after some hours, it is all wrong again.

What can I do to fix the server's time?

Best Answer

You first can check if your ntp serv is good in registery

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W32Time\

If good check ntp service

w32tm /query /status

If look good too, enable debug mode to get log

w32tm /debug /enable /file:C:\w32time.log /entries:0-300 /size:20971220

Entries value is to get all type of info And size for the max size in octet of log