A Windows host can lose time in ways that look like anything except a clock problem. Kerberos tickets get rejected, RDP logons fail with “the trust relationship between this workstation and the primary domain failed”, scheduled tasks fire twice or not at all, and event logs across two servers refuse to correlate. All of it traces back to W32Time either not running, not configured, or being told to sync from a source that is itself wrong. This article is the diagnostic path, from a single query to a working hierarchy.
The commands are identical whether the machine came from a template or a custom ISO; if you are provisioning a new host and want to know which image types exist, the provisioning notes in our Windows VPS overview cover what each option gives you on first boot.
What W32Time is and what it is not
W32Time is not a full NTP implementation. It is a client that uses a subset of the NTP packet format with its own slew discipline and a much looser notion of accuracy than a real daemon. For a domain controller holding the PDC emulator role, or for a standalone server that only needs to be within a second of true time for Kerberos and TLS, it is entirely adequate. For anything that needs sub-100-millisecond accuracy, it is the wrong tool.
The service has a default startup type of Manual on member servers, triggered on demand, and it is configured with a domain hierarchy by default. That default assumes the machine can reach a domain controller. A standalone VPS in a workgroup does not have that, so it will either sync from time.windows.com with poor reliability or quietly drift.
Reading the current state
Three queries answer most questions. /query /status shows the source, last successful sync, and the current stratum. /query /configuration shows which servers are configured, in what order, and whether the client is in domain or standalone mode. /query /peers lists the reachability of each configured source.
w32tm /query /status
w32tm /query /configuration
w32tm /query /peers
w32tm /query /source
A healthy standalone host returns something like this — note the leap indicator of 0, stratum 3, and a last successful sync measured in minutes, not days:
Leap Indicator: 0(no warning)
Stratum: 3 (secondary reference - syncd by (S)NTP)
Precision: -23 (119.209ns per tick)
Root Delay: 0.0312043s
Root Dispersion: 0.0420962s
ReferenceId: 0xC0A80101 (source IP: 192.168.1.1)
Last Successful Sync Time: 11/19/2026 9:14:02 PM
Source: time.cloudflare.com,0x9
Poll Interval: 10 (1024s)
If Source reads Local CMOS Clock on a machine that is supposed to be syncing, the client has given up and is free-running on the host’s hardware clock. That is the single most common finding, and it usually means either unreachable servers or a blocked outbound UDP 123.
Configuring a standalone VPS against reliable NTP servers
On a workgroup server, point the client at a small set of well-known stratum-1 or stratum-2 sources and set an explicit poll interval. Use three or four so that one unreachable address does not stall the process. Cloudflare and Google provide anycast endpoints that are reachable from most elastic networks; pick sources that respond from your region with low delay.
w32tm /config /manualpeerlist:"time.cloudflare.com,0x9 time.google.com,0x9 pool.ntp.org,0x9" /syncfromflags:manual /reliable:yes /update
net stop w32time
net start w32time
w32tm /resync /rediscover
w32tm /query /status
The 0x9 flag means client mode with special polling, which lets Windows pick its own interval and is the right choice for a member or standalone server. /reliable:yes marks this machine as a reliable time source for anything downstream; do not set it on a virtual machine whose own clock is being disciplined by the hypervisor unless you understand the consequences. After the resync, Source should show the first server that answered.
If /resync returns “The computer did not resync because no time data was available”, test reachability directly before touching the registry:
Test-NetConnection time.cloudflare.com -UdpPort 123 -InformationLevel Detailed
Get-Service w32time | Select-Object Status, StartType
Outbound UDP 123 is blocked by default on a surprising number of corporate egress policies and some provider firewalls. On a VPS this is usually not the problem, but it is the first thing to eliminate because it makes every configuration change look broken.
The domain controller case: hierarchy, not peers
In an Active Directory forest, only the PDC emulator of the forest root should sync from an external source. Every other DC syncs from the domain hierarchy; member servers and workstations sync from a DC. Pointing every machine at public servers directly breaks the assumption Kerberos relies on — that all participants share a common, internally consistent axis.
REM on the PDC emulator only
w32tm /config /manualpeerlist:"time.cloudflare.com,0x8 time.google.com,0x8" /syncfromflags:manual /reliable:yes /update
Restart-Service w32time
w32tm /resync
REM on all other domain members
w32tm /config /syncfromflags:domhier /update
Restart-Service w32time
Note the 0x8 flag on the PDC — that is client mode with standard polling, appropriate for a machine that will serve time to others. Then verify the hierarchy from a member server: w32tm /query /source should return the name of a domain controller, not an IP address on the internet.
Why RDP and Kerberos break first
Kerberos tolerates five minutes of skew by default. Past that, tickets are rejected as replay or as expired, and the logon falls back through NTLM or fails outright. RDP is often the first visible casualty because it is the first thing an administrator touches after a host has been off or suspended.
A VPS that was snapshotted, paused for a week, and resumed can be hours behind when the guest boots. If it is domain-joined, it cannot get a ticket to log anyone in, and if there is no cached credential the host appears dead. Two remedies exist: keep a local administrative account with cached credentials for break-glass access, and fix the clock from the console before attempting a domain logon.
Get-WinEvent -LogName System -MaxEvents 50 |
Where-Object { $_.ProviderName -eq 'Microsoft-Windows-Time-Service' } |
Select-Object TimeCreated, Id, LevelDisplayName, Message
Events 36, 38 and 129 all indicate a failure to find or reach a usable source. Read them in order rather than treating the newest one as the cause; a single unreachable upstream generates a cascade of these entries over the poll interval.
Virtualisation effects: host clock discipline
KVM guests typically have no reliable hardware clock of their own. The hypervisor injects time through a paravirtualised clock source, and the guest should treat that as its reference. Running an aggressive NTP client inside such a guest, one that slews hard against the host, produces a fight that shows up as periodic small jumps.
On a Windows guest under KVM the practical configuration is straightforward: keep W32Time enabled, give it a stable external source, and accept a resync after any host-side snapshot restore or migration. If the guest jumps by more than a few seconds after a live migration, resync immediately rather than waiting for the poll interval to elapse.
w32tm /resync /force
w32tm /stripchart /computer:time.cloudflare.com /samples:4 /dataonly
The stripchart output gives you the offset at each sample — useful to distinguish steady drift from a one-time correction. Steady drift of more than a few hundred milliseconds per hour points at a failing host clock or an unstable time source, and it is worth a ticket to the provider.
Verify, monitor, and stop worrying about it
A one-off configuration is not a fix; clocks drift, sources get retired, and a machine that stopped syncing nine days ago looks fine until the day it does not. Register a check that reads the sync age and raises an alert above a threshold — one hour for a server, a few minutes for a domain controller.
$st = w32tm /query /status /verbose | Out-String
$age = [regex]::Match($st,'Last Successful Sync Time:\s*(.+)').Groups[1].Value
if ($age) {
$hours = ((Get-Date) - [datetime]::Parse($age)).TotalHours
if ($hours -gt 1) { Write-EventLog -LogName Application -Source 'ClockCheck' -EventId 9001 -EntryType Warning -Message "Clock sync age $hours h"; }
}
Finally, decide deliberate settings rather than inheriting defaults. On a standalone host that must never drift, sync from at least three external sources and monitor the sync age. On a domain-joined host, let the hierarchy work and ensure the PDC emulator has a good upstream. Both configurations take ten minutes to set and save an afternoon of confused debugging the first time a suspended VPS comes back with the wrong date. If you are comparing plans before rebuilding, check the provider’s notes on snapshot and suspend behaviour alongside the plan comparison table — the suspend-then-restore path is exactly where clock problems originate.



