Use this when clock accuracy matters on Windows.
Windows Time Service
The Windows Time service keeps the system clock accurate, which Kerberos, logs, certificates and scheduled tasks depend on. Domain members get time automatically; workgroup machines use time.windows.com by default.
1. Get-Service W32Time — running.
2. Domain: NT5DS; standalone: NTP.
3. Events: Time-Service.
4. w32tm /query /configuration.
5. Resync.
W32Time service → provider (NT5DS/NTP) → clock discipline
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
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 Check output Verify boundary
Illustrative output, not captured Evidence:
Leap Indicator: 0(no warning)
Stratum: 3
Source: dc01.corp.local
Last Successful Sync Time: ...
Source: Local CMOS Clock means the machine is not syncing.
Step 2 Common mistakes Narrow the fault
- Manual NTP peers on domain members.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Kerberos needs accurate time.
- Logs and certificates depend on it.
- Workgroup machines use time.windows.com.
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
How it works
The Windows Time service (W32Time) keeps the clock in sync. Domain members follow the domain hierarchy (NT5DS) automatically; standalone machines use NTP (time.windows.com by default). Accurate time matters because Kerberos rejects tickets with more than 5 minutes skew, and logs must line up across systems.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
| Machine | Synchronises from | Type |
|---|---|---|
| PDC emulator of the forest root domain | External NTP (manually configured) | NTP |
| Other DCs | PDC emulator or a DC higher in the hierarchy | NT5DS |
| Members | A DC of their domain | NT5DS |
| Workgroup machines | time.windows.com by default | NTP |
Only the forest-root PDC emulator should be configured manually:
w32tm /config /manualpeerlist:"0.pool.ntp.org,0x8 1.pool.ntp.org,0x8" /syncfromflags:manual /reliable:yes /update
Restart-Service w32time
When the PDC emulator role moves, reconfigure the new holder and set the old one back to /syncfromflags:domhier.
Measure, don't assume
C:\> w32tm /stripchart /computer:dc01.corp.example.com /samples:5 /dataonly
Tracking dc01.corp.example.com [10.0.0.10:123].
10:12:01, +00.0012345s
10:12:03, +00.0011987s
C:\> w32tm /query /source
dc01.corp.example.com
C:\> w32tm /query /peers
/stripchart shows the offset against a specific server without changing anything — the right test before blaming time for Kerberos errors. Microsoft's tools reference documents /stripchart, /config /manualpeerlist and the peer flags.
Interpreting /query /status
| Output | Meaning |
|---|---|
Source: Local CMOS Clock | Not syncing — no reachable or configured source |
Source: VM IC Time Synchronization Provider | Hyper-V host time is used; on DCs disable that provider so the domain hierarchy is authoritative |
Stratum | Distance to the reference; members typically 3–5 |
Last Successful Sync Time old | UDP 123 blocked or the source is down |
Why it matters
Kerberos tolerates 5 minutes of skew by default; beyond that authentication fails with KRB_AP_ERR_SKEW. Certificate validity, log correlation and replication conflict resolution also depend on consistent time.
*The Windows Time source and offset readings above are illustrative examples, not captured from a lab or production system.*
Commands
w32tm /query /status
w32tm /query /configuration
w32tm /resync
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 → Windows Time Service. 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%