Use this when clocks drift on Windows machines or Kerberos fails because of time.
Windows Time
Windows Time keeps clocks synchronized with W32Time: domain members sync from DCs, DCs from the PDC Emulator of the forest root, and that from an external NTP source. Kerberos needs clocks within 5 minutes.
1. w32tm /query /status — source and last successful sync.
2. Domain member → source is a DC.
3. Offset: w32tm /stripchart.
4. Resync: w32tm /resync.
5. PDC emulator syncs externally.
PDC emulator ← external NTP → DCs → members
Context & applicabilityCommon mistakes · platform/version boundaries
- Several DCs configured with external NTP sources, causing drift between them.
- Virtualised DCs syncing time from the host (disable VM time sync except at boot).
- Firewalls blocking UDP 123 to the PDC Emulator.
- Members with manual NTP settings instead of
NT5DS.
Operational reference
Fast context before you go deeper.
w32tmPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
w32tm /query /source
w32tm /stripchart /computer:dc01 /dataonly /samples:3
Members should report a DC as the source; offsets should be well under one second.
Subtopics
Go one level deeper into this subject.
The Windows Time service keeps the system clock accurate, which Kerberos, logs, certificates and scheduled tasks depend on.
Subtopic W32TimeW32Time is the Windows Time service that implements NTP. Manage it with the w32tm command, for example w32tm /resync, and its configuration in the registry under W32Time\Parameters.
Subtopic Domain Time HierarchyThe domain time hierarchy makes members sync from their authenticating DC, DCs from the PDC Emulator of their domain, and domain PDCs from the forest root PDC, which syncs to an external NTP source.
Subtopic PDC EmulatorThe PDC Emulator of the forest root domain is the authoritative time source for the whole forest and should be the only DC configured to sync from external NTP servers.
Subtopic NTPNTP (Network Time Protocol, UDP 123) is the protocol W32Time uses.
Subtopic Time Synchronization TroubleshootingTroubleshoot Windows time with w32tm /query /status and /source, w32tm /stripchart against the source, checking UDP 123, the Time-Service event log, and VM time sync from the hypervisor overriding domain time.
- Domain time flows from forest root PDC.
- Only that PDC should use external NTP.
- VM time sync can fight domain time.
w32tm /query /status— source, stratum, last syncw32tm /query /source— current time sourcew32tm /query /configuration— configurationw32tm /stripchart /computer:<server> /samples:5 /dataonly— offset to a serverw32tm /resync— force resync
ReferenceWhy it matters1 section · depth on demand
Domain time hierarchy
Domain members → their authenticating DC → PDC Emulator of the domain → forest root PDC → external reliable NTP source. Only the forest root PDC should be configured manually. Kerberos tolerates 5 minutes of skew. VMs: disable host time sync for DCs (or at least for the time provider) so they follow the domain hierarchy.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Accurate time matters for Kerberos (5-minute skew), log correlation, certificates, scheduled tasks and compliance (some regulations require accurate timestamps). Windows Time (W32Time) supports NTP and, since Windows Server 2016, high-accuracy configurations (1 ms-level with proper setup); Server 2019+ adds leap second support and PTP (Precision Time Protocol) providers.
w32tm /query /status
w32tm /query /source
w32tm /query /configuration
w32tm /query /peers
ReferenceConfiguration & state1 section · depth on demand
Commands
w32tm /query /configuration
w32tm /resync /rediscover
w32tm /monitor /domain:corp.local
Documented example, not captured output. /monitor lists DCs and their offset from the PDC Emulator.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Windows Time. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/networking/windows-time-service/windows-time-service-top · confidence 94%