Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Windows NTP Time Sync: Find Source & Fix Errors

· 5 min read · Home Tech

In this article
  1. How Windows Time Sync Works
  2. Finding Your Current Time Source
  3. Common NTP Errors and Their Causes
  4. How to Fix NTP Sync Errors
  5. Choosing a Good Time Source
  6. Comparison: NTP vs. Other Sync Methods
  7. Safety and Accuracy Considerations
  8. Frequently Asked Questions

If Windows time keeps drifting or shows the wrong time, the cause is almost always a misconfigured or unreachable NTP (Network Time Protocol) time source. You can find your current time source and fix most errors by checking the Windows Time service settings and pointing it to a reliable public NTP server, then forcing a resync. This article explains how to identify your time source, why errors happen, and how to correct them step by step.

How Windows Time Sync Works

Windows uses the Windows Time service (W32Time) to synchronize the system clock. By default, it uses NTP to contact a time server over the internet or a local network. The service runs in the background and checks the time source periodically, typically every 7 days for domain-joined machines or every 60 minutes for standalone systems, though this can vary. When it works, your clock stays accurate to within a few seconds. When it fails, you may see the wrong time, or the time may drift gradually.

Finding Your Current Time Source

To see which time server Windows is currently configured to use, open Command Prompt as Administrator and run:

w32tm /query /source

This returns the name or IP of the server, or a message like "Local CMOS Clock" if no external source is configured. To get more detail, including the last sync time and the offset, run:

w32tm /query /status

This shows the source, the last successful sync, and the time error. If the source is "Local CMOS Clock" or the status shows "Not Synchronized," your NTP configuration is likely the problem.

Common NTP Errors and Their Causes

Several issues can prevent Windows from syncing correctly:

  • Wrong time zone or manual time override: If you set the time manually, Windows may stop syncing automatically.
  • Firewall blocking UDP port 123: NTP uses UDP port 123. If your firewall or router blocks it, the sync fails.
  • Unreachable time server: The configured server might be down, or the DNS name may not resolve.
  • Corrupted Windows Time service state: The service may be stopped or its configuration may be damaged.
  • Too large a time offset: If your clock is off by more than 15 minutes (the default), Windows may refuse to sync to prevent sudden jumps.

How to Fix NTP Sync Errors

Follow these steps in order. Run every command as Administrator.

  1. Restart the Windows Time service: Open Command Prompt as Admin and run:
    net stop w32time then net start w32time
  2. Set a reliable time source: Use a public NTP server like time.windows.com (default) or a regional pool like pool.ntp.org. To set it, run:
    w32tm /config /manualpeerlist:"pool.ntp.org" /syncfromflags:manual /update
  3. Force an immediate resync: Run:
    w32tm /resync
  4. Check the result: Run w32tm /query /status again. The source should now be the server you set, and the last sync time should be recent.
  5. If it still fails, check the event log: Open Event Viewer, go to Windows Logs > System, and look for W32Time events. Error IDs 36, 29, or 50 indicate specific NTP problems.

If the time is off by more than 15 minutes, you may need to adjust the MaxPosPhaseCorrection and MaxNegPhaseCorrection registry values, or simply set the time manually once, then resync.

Choosing a Good Time Source

The default time.windows.com works for most users. However, if you are in a region far from Microsoft's servers, you might get better accuracy with a local NTP pool. The pool.ntp.org project provides geographically diverse servers (e.g., 0.pool.ntp.org). For high accuracy, you can use public stratum-1 servers, but those are often overused and may block heavy traffic. For most home and business uses, a pool server is the best balance of speed and reliability.

Comparison: NTP vs. Other Sync Methods

Windows also supports SNTP (a simplified version of NTP) and, in some configurations, can use Active Directory domain hierarchy. In a domain, clients sync from domain controllers, which sync from external sources. For standalone PCs, NTP is the only practical method. The built-in time sync is not as precise as dedicated time client software, but it is sufficient for typical use. If you need millisecond accuracy (e.g., for trading or scientific logging), you would need a GPS-based time source or a specialized NTP client.

Safety and Accuracy Considerations

Always ensure your time source is trustworthy. Using an unsecured public server could theoretically expose you to time spoofing, but the risk is low. Do not disable the Windows Time service, as that will cause your clock to drift indefinitely. Also, avoid manually setting the time if you rely on automatic sync, as it can interfere with the service. If you have a domain environment, do not change the time source on client machines; let the domain controllers handle it.

Frequently Asked Questions

Why does my Windows time keep resetting to 2000 or another old date?

This usually indicates the CMOS battery on your motherboard is dead. The BIOS clock loses power and resets to a default date. Replace the battery (a common CR2032 coin cell) and then sync the time again.

How do I make Windows sync time more frequently?

By default, Windows syncs weekly. You can change the interval by editing the registry key HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient and setting SpecialPollInterval to a value in seconds (e.g., 3600 for hourly). Then restart the Windows Time service.

What does "The time service is not running" mean?

It means the Windows Time service is stopped. Start it with net start w32time and set it to Automatic in Services.msc. If it keeps stopping, check for malware or system file corruption.

Can I use a public NTP server without internet?

No. NTP requires network access to the server. If you are offline, Windows will use the CMOS clock, which will drift. For offline environments, you can set up a local NTP server on your network, but that requires separate hardware or software.

Why does my time drift even after syncing?

Drift is normal for any clock. The Windows Time service corrects it at each sync. If drift is excessive (more than a few seconds per day), it could be a failing CMOS battery, an overclocked CPU, or a misconfigured sync interval.