TechBuzzPro

Change Windows 11 NTP Server and Fix Time Sync

· 6 min read · Windows & PC

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

You can change the Windows 11 NTP server and fix time sync by pointing Windows Time (w32time) at a reliable time source, restarting the service, and forcing a resync. The usual cause of a wrong clock is that Windows is set to sync with time.windows.com, which can be slow or unreachable in some networks, or the service has simply stopped. The steps below use the built-in Settings app and Command Prompt, so no extra software is needed. Menu labels can differ slightly by Windows 11 version and region.

What You'll Need

  • A Windows 11 PC with an administrator account (you will be prompted for permission).
  • An internet connection that allows outbound UDP port 123, which NTP uses.
  • The hostname of a time server you trust, for example time.google.com, pool.ntp.org, or your router's address if it acts as a local NTP server.
  • About five minutes, plus one restart of the PC if the service is stuck.

Step-by-Step

  1. Check the current setting first. Open Settings > Time & language > Date & time. Turn on Set time automatically and Set time zone automatically if they are off. If the clock is still wrong after a minute, continue. This confirms whether the problem is the sync source or the service.
  2. Open Command Prompt as administrator. Press the Windows key, type cmd, right-click Command Prompt, and choose Run as administrator. Accept the User Account Control prompt.
  3. See which server is configured. Type w32tm /query /status and press Enter. The Source line shows the current time source. If it says Local CMOS Clock or Free-running System Clock, Windows is not syncing at all.
  4. Point Windows at a new NTP server. Type w32tm /config /manualpeerlist:"time.google.com" /syncfromflags:manual /reliable:yes /update and press Enter. Replace time.google.com with your preferred server. For several servers, separate them with spaces inside the quotes, for example "time.google.com pool.ntp.org". The reliable:yes flag tells Windows this is a trusted source.
  5. Restart the Windows Time service. Type net stop w32time, press Enter, then net start w32time, press Enter. If you get an error that the service is not started, run sc triggerinfo w32time delete first, then start it again.
  6. Force a resync. Type w32tm /resync and press Enter. A successful result says The command completed successfully. If it says the computer did not resync because no time data was available, the server is unreachable or port 123 is blocked; try a different server.
  7. Confirm the change. Run w32tm /query /status again. The Source line should now show your chosen server, and the Last Successful Sync Time should be recent. Check the clock in Settings > Time & language > Date & time.
  8. Make the setting survive reboots. The configuration above is stored in the registry, so it persists. If you later want to return to the Microsoft default, run w32tm /config /syncfromflags:domhier /update and restart the service. This is also the correct setting for a PC joined to a domain, where the domain controller should be the time source.

Common Mistakes

  • Forgetting the quotes. The /manualpeerlist value must be wrapped in straight double quotes, especially when listing more than one server. Curly quotes copied from a website will cause the command to fail.
  • Running the commands without administrator rights. The config and service commands need an elevated prompt; otherwise you get an access denied error.
  • Changing the server on a domain-joined PC. Domain machines should sync from the domain hierarchy, not from a public server. Forcing a public peer can cause authentication and policy problems. Use /syncfromflags:domhier instead.
  • Expecting an instant fix. Windows may take a few seconds to a minute to apply the new source. Run w32tm /resync rather than waiting for the scheduled task.
  • Ignoring the time zone. A correct UTC time with the wrong time zone still shows the wrong local clock. Check Set time zone automatically and the selected zone.
  • Using a server that requires authentication. Public NTP servers are unauthenticated. If your network requires authenticated time, use the server supplied by your IT department.

Tips

  • Pick a server geographically close to you. The pool.ntp.org project lets you use regional names such as uk.pool.ntp.org or de.pool.ntp.org, which usually respond faster.
  • List two or three servers so Windows can fall back if one is down.
  • If your router offers an NTP server, using its LAN address keeps sync working even when the internet is down.
  • Check sync status any time with w32tm /query /status; the Poll Interval line shows how often Windows checks the server.
  • After changing the server, leave the PC on and connected for a few minutes so the scheduled sync task can run once.

Troubleshooting

If the resync fails, work from simplest to most involved. First, confirm the PC has internet access and that the server name resolves: type ping time.google.com and see whether replies come back. A ping failure does not always mean NTP is blocked, but a DNS failure does. Next, check that the Windows Time service is running: open Services (press Windows key, type services), find Windows Time, and confirm its status is Running and its startup type is Automatic. If it is stopped, start it.

If the service starts and then stops again, re-register it by running w32tm /unregister followed by w32tm /register in an elevated prompt, then start the service and resync. This resets the service configuration without deleting your files. If the clock is still wrong, check for a third-party time tool or a VPN that might intercept traffic. Corporate networks sometimes block UDP port 123; in that case ask IT for the approved internal time server. As a last resort, restart the PC and repeat the config and resync steps.

Frequently Asked Questions

Which NTP server should I use in Windows 11?

Any reliable public server works. time.google.com, time.cloudflare.com, and regional pool.ntp.org names are common choices. On a domain-joined PC, use the domain hierarchy instead.

Does changing the NTP server require a restart?

No. Restarting the Windows Time service and running a resync applies the change immediately. The setting persists across reboots because it is stored in the registry.

Why does w32tm /resync say access is denied?

The command needs an elevated Command Prompt. Close the window, reopen Command Prompt with Run as administrator, and try again.

Can I use my router as the time server?

Yes, if the router has a built-in NTP server. Enter its LAN IP address in the manual peer list. This keeps time sync working when the internet is unavailable.

How do I go back to the default Microsoft time server?

Run w32tm /config /syncfromflags:domhier /update and restart the Windows Time service. On a home PC this returns Windows to its default behaviour.

Will changing the NTP server fix a clock that is off by hours?

Usually yes, once a resync succeeds. If the time zone is also wrong, correct it in Settings > Time & language > Date & time, because NTP only sets UTC.