A domain-joined member server should synchronize from the AD domain hierarchy; identify where that hierarchy breaks, then restore DOMHIER synchronization rather than resetting or restarting the server again.
Kerberos normally requires the time difference between the KDC and the target server to remain under five minutes. Because any domain controller running KDC can participate, checking only the client and one server is insufficient.^1^
1. Find the incorrect time source
From an elevated Command Prompt on the affected server, run:
w32tm /query /source
w32tm /query /status
w32tm /query /configuration
w32tm /query /peers
Check these results:
- Source should identify a domain time source for an ordinary domain member.
- In configuration, check whether
Type is NT5DS/domain hierarchy or has been overridden by a manual peer or Group Policy.
- Status shows the current source, synchronization state, and last successful synchronization.
w32tm is the supported tool for configuring and diagnosing W32Time; local Administrator membership is required for local operations.^2^
Then inspect all domain controllers:
w32tm /monitor /domain:contoso.com
dcdiag /test:CheckSecurityError
Replace contoso.com with the AD DNS domain name. In a multi-domain forest, run w32tm /monitor separately for each domain because it checks only the DCs in the specified domain. Look for the point at which the reported offset becomes excessive.^1^
2. Restore domain-hierarchy synchronization
If the affected computer is a member server, workstation, or non-root-PDC domain controller and its source is manual, incorrect, or unavailable, run:
w32tm /config /syncfromflags:domhier /update
net stop w32time
net start w32time
w32tm /resync /rediscover
w32tm /query /source
w32tm /query /status
The final source should resolve to the domain hierarchy, and the last synchronization should succeed. Domain members normally use NT5DS; the forest-root PDC emulator is the exception and should use an authoritative upstream source.^2^
Do not apply DOMHIER to the forest-root PDC emulator as its final configuration.
3. If the affected server is the forest-root PDC emulator
Configure that PDC to use an approved external or internal authoritative NTP source:
w32tm /config /manualpeerlist:"ntp1.contoso.net,0x8 ntp2.contoso.net,0x8 ntp3.contoso.net,0x8" /syncfromflags:manual /reliable:yes /update
w32tm /resync /rediscover
w32tm /query /source
w32tm /query /status
Replace the example names with real NTP servers approved for the environment. The forest-root PDC sits at the top of the AD time hierarchy, so pointing it back to the hierarchy is invalid; other DCs and domain members should cascade from it.^3^
4. If resynchronization reports “no time data was available”
That result means the client did not receive a valid NTP response. Check, in order:
- The configured NTP server name or address is valid.
- DNS resolves that server.
- UDP port 123 is permitted between the systems.
- The source is online and advertising time.
- For domain synchronization, run:
dcdiag /test:Advertising
w32tm /monitor /domain:contoso.com
A packet capture taken while running w32tm /resync /rediscover can distinguish no outgoing UDP 123 request from a request that receives no response.^4^
After synchronization succeeds, retry the Kerberos operation. If it still fails, record the exact client, target server, KDC/DC used, output of w32tm /query /status on each, and the relevant Kerberos and Time-Service events; that distinguishes a remaining time-path problem from a separate Kerberos configuration issue.
References
- How to troubleshoot Active Directory replication error 5 in Windows Server: Access is denied
- Windows Time service tools and settings
- Configure the Root PDC with an Authoritative Time Source and Avoid a Widespread Time Skew - Microsoft Engage Center
- "w32tm /resync" fails with "The computer didn't resync because no time data was available."