How to fix and reset the Windows Time service when your system clock is wrong or out of sync
Summary
This guide helps you troubleshoot and resolve: How to fix and reset the Windows Time service when your system clock is wrong or out of sync. Follow the steps below to fix the issue.
Common Causes
If your Windows 11 computer is showing the wrong time, scheduled tasks are running at unexpected times, or you're seeing authentication errors when accessing websites and network resources, the Windows Time service is likely the culprit. The Windows Time service (also known as W32Time) keeps your system clock synchronised with internet time servers, which is essential for file timestamps, secure authentication, and reliable scheduled operations.
This guide walks you through diagnosing and resolving common Windows Time service issues, from quick fixes to more thorough troubleshooting steps.
Quick Fix Steps
Before diving into detailed troubleshooting, try these common fixes that resolve most Windows Time issues:
- Right-click the clock on your taskbar and select Adjust date and time.
- Toggle Set time automatically off, wait five seconds, then toggle it back on.
- If the time is still wrong, toggle Set time zone automatically off and confirm your time zone is correct.
- Restart your computer and verify the time is correct after reboot.
If these steps don't resolve the issue, continue to the detailed instructions below.
Detailed Instructions
Verify the Windows Time Service Is Running
- Press
Win + R, typeservices.msc, and press Enter. - Scroll down and locate Windows Time in the list.
- Confirm the Status column shows Running.
- If the service isn't running, right-click Windows Time and select Start.
- Double-click Windows Time and set the Startup type to Automatic.
- Click Apply, then OK.
Force a Manual Time Sync
You can manually trigger a sync with the default time server using Command Prompt:
- Click Start, type
cmd, then right-click Command Prompt and select Run as administrator. - Type the following command and press Enter:
w32tm /resync - You should see a message confirming the sync was successful.
If you receive an error, the service may not be running or there could be a network connectivity issue preventing contact with the time server.
Reset the Windows Time Service
If the service is stuck or failing to start, a full reset often resolves the problem:
- Open Command Prompt as administrator (as described above).
- Stop the Windows Time service by typing:
net stop w32time - Unregister the service from the system:
w32tm /unregister - Wait a few seconds, then re-register the service:
w32tm /register - Start the service again:
net start w32time - Force a sync:
w32tm /resync
Configure a Reliable Time Server
Sometimes the default time server is unreachable or slow to respond. Switching to a reliable alternative can help:
- Open Command Prompt as administrator.
- Type the following command to configure a new time server (this example uses
time.windows.com):w32tm /config /manualpeerlist:"time.windows.com" /syncfromflags:manual /update - Restart the Windows Time service:
net stop w32time && net start w32time - Force a sync:
w32tm /resync
Other reliable time servers you can use include:
time.nist.govpool.ntp.orgtime.google.com
"time.windows.com pool.ntp.org".Check Your Time Zone Settings
An incorrect time zone can make your clock appear wrong even when the time itself is accurate:
- Right-click the clock on your taskbar and select Adjust date and time.
- Under Time zone, confirm the correct region is selected (for example, (UTC+10:00) Canberra, Melbourne, Sydney).
- If you're unsure of your correct time zone, disable Set time zone automatically and select it manually.
- Ensure Set time automatically remains enabled.
Check for Network and Firewall Restrictions
Windows Time communicates with external servers over UDP port 123. If your network or security software is blocking this traffic, syncing will fail:
- Confirm your computer has an active internet connection.
- If you're on a corporate or managed network, ask your administrator whether outbound UDP port 123 is permitted.
- Temporarily disable any third-party firewall or security software and attempt a manual sync to test.
- If using a VPN, disconnect and try syncing again.
Troubleshooting
Diagnose Time Sync Issues with Verbose Logging
If the time still won't sync after the steps above, you can generate detailed logs to pinpoint the issue:
- Open Command Prompt as administrator.
- Stop the Windows Time service:
net stop w32time - Enable verbose logging:
w32tm /debug /enable /file:C:\w32time.log /size:1000000 /entries:0-300 - Start the service and attempt a sync:
net start w32time w32tm /resync - Wait a minute, then open
C:\w32time.login Notepad to review the output. - When finished, disable logging:
w32tm /debug /disable
Common Error Messages and Solutions
"The Windows Time service is not running"
- Follow the steps in "Verify the Windows Time Service Is Running" above.
- If the service won't start, perform the full reset procedure.
"An error occurred while Windows was synchronising with the time server"
- Check your internet connection.
- Verify firewall settings allow UDP port 123.
- Try a different time server as described above.
"The computer did not resync because the time data was not within the acceptable range"
- This usually means the local clock is significantly out of sync. Set the time manually first, then attempt a resync.
- Open Settings > Time & language > Date & time and temporarily disable Set time automatically, correct the time manually, then re-enable automatic sync.
Check for Conflicting Software
Some third-party applications, particularly virtualisation software (such as VirtualBox or VMware) and older VPN clients, can interfere with the Windows Time service. If you recently installed new software and the time problems began around the same time, try temporarily uninstalling or disabling the suspect software to see if the issue resolves.
Virtualisation software often synchronises the guest machine's clock with the host, which can override Windows Time settings. Check your virtual machine settings and disable time synchronisation between host and guest if needed.
Verify the Time Service Configuration
You can check the current configuration of the Windows Time service to confirm it's set up correctly:
- Open Command Prompt as administrator.
- Type the following command and press Enter:
w32tm /query /configuration - Review the output to confirm the Type field shows NTP and the NtpServer field lists your configured time server.
- To check the current sync status, type:
w32tm /query /status - Look for the Source field to confirm which time server was last used successfully.
When to Seek Further Assistance
If you've tried all the steps above and your system clock is still incorrect, the issue may be caused by:
- A failing CMOS battery on a desktop computer, which can cause the clock to lose time when the computer is powered off.
- Hardware-level issues with your motherboard's real-time clock.
- Active Directory or domain policies overriding your local settings (common on corporate networks).
- Malware or system corruption affecting core Windows services.
For hardware-related issues, consider contacting a computer technician. For domain-managed computers, speak with your IT administrator. If you suspect malware or system corruption, run a full scan with Windows Security or your preferred antivirus software.
Still Having Issues?
💻 Open a Ticket