Sub topic 15
Time drift and clock synchronization
This chapter assumes you can open an elevated Command Prompt, change Settings, and tell the BIOS/UEFI clock from the Windows clock.
What time drift is
Time drift is a clock that slowly or suddenly shows the wrong time. Windows keeps its own clock and, by default, syncs it with a time server through the Windows Time service (W32Time). If the sync fails or the hardware clock is wrong, the time moves away from the true value.
Symptoms the exam links to bad time
- Certificate or HTTPS warnings, because a certificate looks "not yet valid" or "expired."
- Sign-in failures on a domain. Kerberos authentication rejects a client whose clock is more than 5 minutes off the domain controller.
- Windows Update, email, or cloud sign-in failing for no clear reason.
- Files or log entries stamped with the wrong date.
- The time resets to an old date after every shutdown.
Likely causes
| Symptom | Likely cause |
|---|---|
| Time resets after power-off | Dead CMOS battery |
| Time is off by whole hours | Wrong time zone or daylight saving setting |
| Time slowly drifts | Sync is failing or the time source is unreachable |
| Only domain sign-in fails | Clock is more than 5 minutes off the domain controller |
Domain-joined computers normally take their time from the domain hierarchy, not from the internet. Changing the time source by hand on one of them can cause the very problem you are trying to fix.
Troubleshooting flow
Checking and forcing a sync
Run these from an elevated prompt:
w32tm /query /status
w32tm /resyncThe first command shows the time source and when the last sync succeeded. The second asks the Windows Time service to sync now. If it reports that the service is not running, start W32Time in Services. You can also use Settings > Time & language > Date & time and choose Sync now.
Fix the cause, not only the clock
- Confirm the time zone and the "set time automatically" options.
- Resync and check the status output for the source.
- If the time is lost at every shutdown, replace the CMOS battery (usually a CR2032 coin cell) and then reset the date and time.
- Verify the fix by signing in and opening an HTTPS site.
Following the CompTIA methodology, document what you found, including the battery replacement or the changed setting.
Exercise
A user on a domain-joined laptop cannot sign in, and the laptop clock is 12 minutes ahead. The time also resets after the laptop is unplugged and the main battery is removed. What are the two most likely fixes?
Show answer
Replace the CMOS battery, because the time is lost when power is removed. Then resync the clock with the domain, for example with w32tm /resync. The 12-minute difference is more than Kerberos allows (5 minutes), which explains the sign-in failure.