Fix Windows Server 2012 R2 system time?
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
Related videos on Youtube
andreas
Updated on September 18, 2022Comments
-
andreas almost 2 years
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?
-
EliadTech over 7 yearsPlease clarify, does the time zone change or the time itself? time zone has nothing to do with NTP. maybe theres some VM guest agent at play? what settings do you have on the host?
-
Michael Hampton over 7 yearsHave you checked both the time and the time zone on the host?
-
Mass Nerder over 7 yearsIs the server part of a domain or a workgroup?
-
andreas over 7 years@EliadTech it's only the the time that changes, the time zone remains correct.
-
Michael Hampton over 7 years"CEST" doesn't really mean much. It could be any of several different time zones, and with or without summer time. You're looking for something like
Europe/Paris
. Check/etc/localtime
to see what it is pointing to. Or better yet, just do what should have been done originally, and set the timezone to UTC. -
andreas over 7 yearsLast line says: CET-1CEST,M3.5.0,M10.5.0/3 - so I should be good? It says Europe/Berlin (on the host Ubuntu Server).
-
EliadTech over 7 yearsMaybe it's has something to do with the VM guest agent? is it installed? can you disable it for a while?
-
TheEwook over 6 years@andreas did you get it fix. I have the same problem on my server. Not in a domain and sometimes it goes back by 2 jours. I've tried different things but so far no luck
-
andreas over 6 years@TheEwook unfortunately not. Even adding a manual script didn't fix the issue...
-