Fix Time Sync Failed Issue Windows
In this article
To fix a "time sync failed" issue in Windows, you typically need to reset the Windows Time service and force a manual resynchronization with an internet time server. This article explains the causes and provides step-by-step fixes, from simple settings adjustments to command-line solutions.
Why Windows Time Sync Fails
Windows uses the Windows Time service (W32Time) to automatically synchronize your computer's clock with an internet time server. The sync can fail for several reasons: the time server is unreachable, the service is stopped or disabled, the time difference is too large (Windows refuses to sync if the offset exceeds 15 minutes by default), or a firewall or proxy blocks the NTP (Network Time Protocol) port 123. Sometimes, the issue is caused by a corrupted time configuration or a third-party application that alters system time.
Quick Fix: Adjust Time Settings
Before diving into command-line solutions, try the basic Windows settings:
- Open Settings > Time & Language > Date & time.
- Toggle Set time automatically to On (if off).
- Click Sync now under the Synchronize your clock section.
- If it fails, change the server to
time.windows.comortime.nist.govand click Sync now again.
If the sync still fails, proceed to the command-line method.
Reset Windows Time Service via Command Prompt
This is the most reliable fix. You need to run Command Prompt as Administrator. Here are the exact steps:
- Press Win + X and select Terminal (Admin) or Command Prompt (Admin).
- Type the following commands one by one, pressing Enter after each:
net stop w32time
w32tm /unregister
w32tm /register
net start w32time
w32tm /resync - After the last command, you should see a message like The command completed successfully.
If you get an error about access denied, make sure you are running as administrator. If the service fails to start, check the Event Viewer for more details.
Force a Manual Resync with a Specific Server
Sometimes the default server is unreachable or slow. You can manually specify a reliable NTP server:
- Open Command Prompt as Administrator.
- Type
w32tm /config /manualpeerlist:time.nist.gov /syncfromflags:manual /updateand press Enter. - Then type
w32tm /resync.
This forces Windows to use time.nist.gov (a U.S. government time server). You can replace it with other public servers like pool.ntp.org or time.google.com. To revert to automatic discovery, use w32tm /config /syncfromflags:domhier /update.
Check Firewall and Network Issues
NTP uses UDP port 123. If a firewall (Windows Defender Firewall or third-party) blocks outbound or inbound traffic on this port, sync will fail. To check Windows Defender Firewall:
- Open Control Panel > Windows Defender Firewall > Advanced settings.
- Click Inbound Rules and look for Time Service or NTP. If disabled, enable it.
- Also check Outbound Rules similarly.
If you are on a corporate network, the administrator may block NTP. In that case, you can set the clock manually or ask IT to allow the traffic.
Common Misconception: Time Sync vs. Time Zone
Many users confuse time sync failure with incorrect time zone settings. Time sync adjusts the UTC-based clock; your time zone determines the displayed local time. If the clock shows the wrong hour but the minute and second are correct, it's likely a time zone issue, not a sync problem. To fix that, go to Settings > Time & Language > Date & time and turn off Set time zone automatically, then select the correct zone manually.
Frequently Asked Questions
Why does Windows time sync fail with error 0x80070005?
This error means Access Denied. It usually occurs when you don't run the command prompt as Administrator. Right-click on Command Prompt or Terminal and select Run as administrator.
Can I fix time sync without admin rights?
No, changing the Windows Time service requires administrative privileges. If you don't have admin rights, contact your system administrator or use the Settings app to manually set the time (which also requires admin rights for automatic sync).
What is the default time server in Windows?
Windows uses time.windows.com by default. You can change it to any public NTP server, but Microsoft recommends keeping the default unless you have a specific reason.
Why is my clock always off by a few minutes even after sync?
This can happen if your computer's CMOS battery is dying or if the sync interval is long (default is weekly). You can shorten the interval using the registry or a third-party tool, but the simplest fix is to manually click Sync now frequently.
Does Windows sync time when the computer is off?
No, the sync occurs at startup and then periodically while the system is on. If you shut down your computer for days, the clock will drift until the next sync.
When All Else Fails: Registry Edit
If the above methods fail, you can adjust the Windows Time registry settings. This is more advanced and should be done carefully:
- Press Win + R, type
regedit, and press Enter. - Navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters. - Double-click Type and set it to
NTP(if not already). - Double-click NtpServer and enter a server like
time.windows.com,0x1(the 0x1 flag enables client mode). - Close the editor and restart the Windows Time service as described earlier.
Always back up the registry before editing. A wrong change can cause system instability.