Fix Time Synchronization Failed in Windows
In this article
When Windows shows “Time Synchronization Failed”, your system clock can drift, which breaks scheduled tasks, file timestamps, and secure websites (HTTPS certificates check your clock). This guide walks you through the most common fixes, from restarting the time service to manually setting a reliable time server. You’ll need administrator access on your PC, and an internet connection (unless you set the time manually).
What You'll Need
- An account with administrator privileges on the Windows PC
- Access to the internet (for automatic time sync)
- Optional: a second device to check the correct current time
Step-by-Step
- Check the basics first. Right-click the clock in the taskbar and select “Adjust date/time”. Make sure “Set time automatically” and “Set time zone automatically” are both toggled On. If they are already on, turn them off, wait a few seconds, then turn them back on. This often forces a re-sync.
- Restart the Windows Time service. Press Win + R, type
services.msc, and press Enter. Scroll down to Windows Time. Right-click it and choose Restart. If the service is not running, right-click and select Start. (If you don’t see “Restart”, the service may be disabled – see step 5.) - Force an immediate resync from Command Prompt. Open Command Prompt as administrator (press Win, type
cmd, right-click “Command Prompt”, and choose “Run as administrator”). Type the following commands, pressing Enter after each:w32tm /resync
If that returns an error, run these two commands to force an update:w32tm /config /manualpeerlist:"time.windows.com" /syncfromflags:manual /update
w32tm /resync
After a few seconds, you should see “The command completed successfully.” - Set a different time server. Sometimes the default server (time.windows.com) is unreachable from your network. In the same Command Prompt, try:
w32tm /config /manualpeerlist:"time.nist.gov" /syncfromflags:manual /update
w32tm /resync
If that works, you can keep using that server. To revert to the default later, run:w32tm /config /syncfromflags:domhier /update - Enable the Windows Time service (if it was disabled). Open
services.mscagain, double-click Windows Time. Set “Startup type” to Automatic, click Apply, then click Start (if it’s not running). Click OK. - Fix the registry entry for the time server. Press Win + R, type
regedit, and press Enter. Navigate to:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
Double-click NtpServer and make sure it containstime.windows.com,0x9(or a similar valid server). If it’s empty or wrong, change it totime.windows.com,0x9and click OK. Then restart the Windows Time service (step 2). - Check your firewall or router. Windows Time uses UDP port 123. If you have a third-party firewall, make sure it isn’t blocking outbound UDP 123. On a corporate network, your router or firewall may block NTP traffic – try a different server (step 4) or contact your network admin.
- Set the time manually (temporary fix). If automatic sync still fails, you can set the time manually: go to Settings > Time & Language > Date & time, turn off “Set time automatically”, click “Change” under “Set the date and time manually”, and enter the correct time. This won’t fix the underlying issue, but it keeps your clock accurate until you can resolve the sync problem.
Common Mistakes
- Forgetting to run Command Prompt as administrator. The
w32tmcommands require elevated privileges. If you see “Access is denied”, close and reopen as admin. - Using the wrong time server format. The server address must include the
,0x9suffix (e.g.,time.windows.com,0x9). Without it, the sync may fail silently. - Changing the time zone incorrectly. If your time zone is wrong, the clock will show the wrong time even after a successful sync. Verify your time zone in Settings > Time & Language > Date & time.
- Disabling the Windows Time service permanently. Some “tweaks” disable this service to “speed up” Windows. That breaks sync. Ensure it’s set to Automatic.
- Ignoring the CMOS battery. If the time resets every time you shut down, the motherboard battery is likely dead. That’s a hardware issue, not a software one.
Tips
- Use multiple fallback servers. You can list several servers separated by spaces, e.g.,
time.windows.com,0x9 time.nist.gov,0x9. Windows will try them in order. - Sync after resuming from sleep. If your PC sleeps for days, the clock can drift. You can enable a scheduled task to resync daily, but the simplest is to manually run
w32tm /resyncwhenever you notice drift. - Check the event log for errors. Open Event Viewer (Win + R, type
eventvwr), go to Windows Logs > System, and look for errors from source “Kernel-General” or “W32Time”. The details often point to the exact cause. - If you’re in a domain environment, your PC should sync from the domain controller, not from an external server. In that case, use
w32tm /config /syncfromflags:domhier /updateto revert to domain sync.
Troubleshooting
Still failing after all steps? Try these additional checks:
- Run the Windows Time diagnostic tool. Open Command Prompt as admin and type
w32tm /debug /enable, thenw32tm /resync. This creates a log file atC:\Windows\Temp\w32time.log. Review it for clues. Disable debug mode withw32tm /debug /disable. - Check if your ISP or network blocks NTP. Try pinging
time.nist.gov(in Command Prompt:ping time.nist.gov). If it times out, your network may block UDP 123. Use a different server liketime.google.com(which uses the same port, but sometimes is allowed). - Reset the Windows Time service completely. Run these commands as admin:
net stop w32time
w32tm /unregister
w32tm /register
net start w32time
Then reconfigure the server (step 3 or 4) and resync. - Update Windows. Some older builds had bugs in the time service. Install all pending updates and restart.
- Check for third-party time sync software. If you installed a utility like “Atomic Clock Sync”, it may conflict with Windows Time. Uninstall it and try again.
- If nothing works, set the time manually and accept that automatic sync may be blocked by your network. You can still keep the clock accurate by manually adjusting it periodically.
Frequently Asked Questions
Why does Windows say “Time Synchronization Failed” even though I’m online?
This usually happens when the Windows Time service isn’t running, or the default time server is unreachable from your network. Restart the service and try a different server like time.nist.gov.
How often does Windows sync the time automatically?
By default, Windows syncs once a week. You can change the interval via the registry (under HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient, set SpecialPollInterval to a value in seconds, e.g., 86400 for daily).
Is it safe to set the time manually if sync fails?
Yes, but it’s a temporary fix. If your clock drifts significantly, you’ll need to correct it regularly. The underlying sync issue should be resolved to keep the clock accurate long-term.
Can I use a public time server like time.google.com?
Yes. Google, NIST, and many other organizations run public NTP servers. Use the address time.google.com in the w32tm /config command, with the ,0x9 suffix.
Why does my time reset every time I turn off the PC?
That’s almost always a dead CMOS battery on the motherboard. Replace the battery (usually a CR2032) to fix it. This is a hardware fix, not a software one.
Does the time sync failure affect security?
Yes. An incorrect clock can cause HTTPS certificate errors, break Kerberos authentication in domains, and cause issues with scheduled tasks. Fixing sync is important for security and stability.