Smart Systems for Home

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

Fix Windows Won't Sync Time with time.windows.com

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

If your Windows clock won't sync with time.windows.com, the usual cause is a stopped Windows Time service, a wrong time zone, or a blocked NTP port. Here's the shortest fix: restart the Windows Time service, then force a resync from an elevated Command Prompt. If that fails, check your time zone, internet connection, and firewall. Below is the full step-by-step guide.

What You'll Need

  • Administrator access to your Windows PC (you'll need to open Command Prompt as admin).
  • An active internet connection (Wi-Fi or Ethernet).
  • About 10 minutes of time.

Step-by-Step

  1. Check your time zone and date/time settings first. Right-click the clock in the taskbar and choose Adjust date/time. Make sure Set time automatically is toggled On and Set time zone automatically is On (or manually select the correct time zone). If the date is way off (e.g., years off), Windows may refuse to sync. Correct the date manually if needed.
  2. Open Command Prompt as Administrator. Press the Windows key, type cmd, right-click Command Prompt, and select Run as administrator. Click Yes if prompted by User Account Control.
  3. Restart the Windows Time service. In the Command Prompt, type the following commands one by one, pressing Enter after each:
    net stop w32time
    net start w32time
    This stops and starts the service that handles time sync.
  4. Force a resync with time.windows.com. Type this command and press Enter:
    w32tm /resync
    You should see a message like "The command completed successfully" or "Sending resync command to local computer". If it says "The computer did not resync because no time data was available", proceed to the next step.
  5. If resync fails, reconfigure the time source. Run these commands in order:
    w32tm /config /manualpeerlist:"time.windows.com" /syncfromflags:manual /update
    net stop w32time
    net start w32time
    w32tm /resync
    This tells Windows to use time.windows.com as its only time source and forces an update.
  6. Check the sync status. Type w32tm /query /status and press Enter. Look for Source — it should say time.windows.com or VM IC Time Sync Provider (if you're on a VM). Also check Last Successful Sync Time — it should be recent.
  7. If it still fails, adjust the firewall or router. Windows Time uses UDP port 123. Make sure your firewall or router isn't blocking outbound NTP traffic. If you have third-party security software, temporarily disable it (just for testing) and try the resync again.
  8. As a last resort, use the Settings app. Go to Settings > Time & Language > Date & time. Toggle Set time automatically off, wait a few seconds, then toggle it back on. This often triggers a fresh sync attempt.

Common Mistakes

  • Not running Command Prompt as Administrator. Without admin rights, the net stop w32time command will fail with "Access denied." Always right-click and select Run as administrator.
  • Wrong time zone. If your time zone is incorrect, even a successful sync will show the wrong local time. Double-check that the time zone matches your location.
  • Using a different time server. If you previously changed the time source to something like pool.ntp.org, the commands above might not override it. The /manualpeerlist command with /syncfromflags:manual forces it to use only the specified peer.
  • Ignoring the date being off. If your date is set to 2020, Windows may think the sync response is invalid. Manually set the correct date before syncing.

Tips

  • Use the built-in troubleshooter. Windows has a Date and Time troubleshooter: Settings > System > Troubleshoot > Other troubleshooters (or Additional troubleshooters), then run Date and Time. It can automatically fix common issues.
  • Check the Windows Time service startup type. Open Services (type services.msc in Run), find Windows Time, and ensure its Startup type is Automatic (or Automatic (Delayed Start)). If it's disabled, set it to Automatic and start it.
  • If you're on a domain network, your PC may sync from a domain controller instead of time.windows.com. That's normal and usually fine — but if you need it to sync directly, you'll have to change the source as shown above, though your domain policy may override it.
  • For laptops, ensure the battery isn't completely drained — a dead CMOS battery can cause time to reset every boot. If the clock resets after every shutdown, consider replacing the CMOS battery (a small coin cell on the motherboard).

Troubleshooting

If the steps above didn't fix the sync, here's what to try next, in order:

  1. Restart your router and PC. A simple network hiccup can block NTP. Power-cycle your router, then restart your computer.
  2. Run the Windows Time service diagnostic. In Command Prompt (admin), run w32tm /debug /enable and then w32tm /resync. This will log detailed info. Check the log file at C:\Windows\Temp\w32time.log for errors like "NtpClient: No response".
  3. Check if port 123 is blocked. Some corporate or public Wi-Fi networks block NTP. Try connecting to a different network (e.g., phone hotspot) and resync again. If it works there, your network is the problem.
  4. Use a different time server temporarily. If time.windows.com is unreachable from your ISP, try time.nist.gov or pool.ntp.org by running w32tm /config /manualpeerlist:"time.nist.gov" /syncfromflags:manual /update and then resync. If that works, you can keep it or switch back later.
  5. Verify the Windows Time service is not disabled by group policy. If you're on a managed PC, group policy may prevent changes. Check with your IT admin.
  6. Re-register the Windows Time service. As a last resort, run these commands in admin Command Prompt:
    w32tm /unregister
    w32tm /register
    net start w32time
    w32tm /resync
    This resets the service to its default configuration.

If nothing works, consider that your motherboard's CMOS battery might be dead — this is common on desktops over 5 years old. Replace the battery (a CR2032 coin cell) and then set the time manually. If the problem persists after that, it could be a hardware RTC issue.

Frequently Asked Questions

Why does my Windows clock keep resetting to a wrong time?

This usually means the CMOS battery is dead or the time zone is set incorrectly. Replace the battery if the clock resets after every full shutdown, and double-check your time zone in Settings.

Can I sync with a different time server instead of time.windows.com?

Yes. Use the command w32tm /config /manualpeerlist:"time.nist.gov" /syncfromflags:manual /update (replace the server with any NTP server you trust), then restart the Windows Time service and resync.

What does "The computer did not resync because no time data was available" mean?

It means Windows couldn't reach the time server, either due to a network issue, a firewall block, or the server being down. Check your internet connection, try a different server, or temporarily disable your firewall to test.

Is it safe to disable the Windows Time service?

No, you should keep it running. If you disable it, your clock will drift over time and won't sync automatically. Only disable it if you have a specific reason and you're aware of the consequences.

Does syncing time affect my system performance?

No, it's a very lightweight process that runs in the background. It only sends a small network request every few hours, so it has no noticeable impact on performance.

My PC is on a domain — should I still use time.windows.com?

In a domain environment, Windows usually syncs from the domain controller, which is the correct behavior. Manually overriding to time.windows.com may be ignored by group policy. If you need to change it, contact your IT administrator.