How to Configure NTP Server on Windows (Quick Setup Guide)


configure ntp server
XINSTALL BY CLICKING THE DOWNLOAD FILE
A message from our partner

For fixing Windows errors, we recommend Fortect:

Fortect will identify and deploy the correct fix for your Windows errors. Follow the 3 easy steps to get rid of Windows errors:

  • Download Fortect and install it on your PC
  • Launch the tool and Start scanning your PC for Windows errors
  • Right-click on Start Repair to deploy the right fix for each error encountered during the scan
Download Now Fortect has been downloaded by 0 readers this month, rated 4.6 on TrustPilot

Configure NTP server settings in Windows to keep your system clock accurate and avoid issues with authentication, logging, or scheduled tasks. This guide shows how to set trusted NTP peers, restart the Windows Time service, and verify your sync status.

How to configure NTP server in Windows

1. Open an elevated Command Prompt

First, start Command Prompt:

  1. Select Start
  2. Type cmd
  3. Right click Command Prompt
  4. Select Run as AdministratorCMD elevated ERROR_COMPRESSION_DISABLED

2. Add your NTP servers

Next, you need to add your servers by running these commands:

  1. Enter
    w32tm /config /manualpeerlist:"time.windows.com,0x1 time.nist.gov,0x1" /syncfromflags:manual /reliable:yes /update
  2. Press Enter
  3. Restart Windows Time service with:
    net stop w32time
    net start w32time

3. Force a time sync

After doing that, force a time sync with these steps:

  1. Enter w32tm /resync
  2. Wait for the confirmation message
  3. Continue to the next section if you need deeper checks

If the resync command fails, review steps in our guide on Windows devices that do not resync time.

4. Verify sync status

Lastly, verify if the time sync is successful:

  1. Enter w32tm /query /status
  2. Look at the Source field
  3. Confirm a configured server appears
  4. Review Stratum, Last Sync Time, Poll Interval

Advanced NTP server options

1. Edit the registry for deeper control

You can also achieve this with Registry Editor:

  1. Open Registry Editor
  2. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer
  3. Set Enabled to 1
  4. Restart the Windows Time service

2. Check firewall rules

Windows may block NTP traffic when UDP port 123 is restricted. This often causes drift on servers. Review our guide on Windows Server reporting incorrect time.

  1. Open Windows Defender Firewall
  2. Select Advanced Settings
  3. Review inbound and outbound rules
  4. Allow UDP port 123 if needed

Why correct NTP configuration matters

Stable time sync prevents log inconsistencies, avoids sign in failures, and reduces certificate errors. It improves reliability for domain joined devices and scheduled tasks.

What NTP server configuration does

NTP keeps your Windows clock aligned with reputable time sources so you avoid problems caused by incorrect system time. If your PC clock drifts or shows the wrong time, see our guide on fixing Windows clock not showing the correct time.

FAQs

How do I find my current NTP server?

Run w32tm /query /status and check the Source field.

Can I use internal NTP servers?

Yes. Replace public servers with internal peers when required.

What port does NTP use in Windows?

NTP uses UDP port 123.

Why does Windows stop syncing time?

Incorrect server entries, blocked ports, and service interruptions often cause sync failures.

Final thoughts

Windows gives you simple commands to configure NTP and keep your system clock accurate. Add reliable peers, restart the Windows Time service, and verify sync regularly to maintain stable authentication, logging, and system performance.

More about the topics: windows server

Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

User forum

0 messages