How to force time synchronization in Windows using command

Sometimes Windows can act strangely and display the wrong time. This is especially true if you’re dual booting or if some programs are messing with the time settings. If this ever happens to you, you can force Windows to sync the time with a single command.

Note:

You must be logged in as an admin to be able to synchronize your PC's time.

If your PC is on a domain, you can't synchronize your time with an Internet time server using Internet Time Settings. Instead, your clock automatically synchronizes with your domain controller. You can still use the time sync command in Command Prompt to manually synchronize with your domain controller at any time.

Windows time synchronization command

To force time sync in Windows using Command Prompt, all you have to do is execute a single command line.

First, open Command Prompt with admin rights .

In the Command Prompt window , execute the command:

w32tm /resync

As soon as you execute the command, Windows will resynchronize the time based on your current time zone. In case you are wondering, the time zone is set automatically based on your location. Additionally, the time details are updated from the default time.windows.com server (Windows Internet Time Server).

How to force time synchronization in Windows using command
Windows time synchronization command

If your Windows system is on a domain, the above command may not work. In those situations, use the command:

w32tm /domain

Note : Sometimes you may see the error "The computer did not resync because no time data was available”. This is quite common. Especially in Windows 7 and 8. Just try to execute the command multiple times and it will eventually work.

Use custom time server

As mentioned before, Windows uses time.windows.com as the default time server. If that time server doesn’t work for you or if you want to use some other custom time server, you can do that too.

Open Command Prompt with admin rights and execute the following command. Don't forget to replace time.server.url.com with the actual time server URL. You can use the NTP Pool Project (https://www.ntppool.org/zone/@) to find the time server addresses for different countries and locations.

w32tm /config /update /manualpeerlist:time.server.url.com

As soon as you execute the command, Windows will access that time server, get the time, and synchronize it with your system.

Other ways to sync time in Windows 10

Synchronize time with Internet Time Server in Internet Time Settings

1. Open Control Panel (icon view) and click the Date and Time icon .

2. Click the Internet Time tab and click the Change settings button.

Note:

This will also show you the date and time when the clock was last successfully synchronized, along with the name of the Internet server used.

If your PC is on a domain, you won't have an Internet Time tab.

How to force time synchronization in Windows using command
Click the Internet Time tab and click the Change settings button

3. If prompted by UAC, click Yes to confirm.

4. Check the Synchronize with an Internet time server box , select a time server and click Update now.

How to force time synchronization in Windows using command
Check the Synchronize with an Internet time server box, select a time server and click Update now

5. If an error occurs, click Update now again to see if it can sync successfully now. If the date or time on your PC is set too inaccurately, it may cause an error when trying to sync the time.

How to force time synchronization in Windows using command
If an error occurs, click Update now again to see if it can sync successfully now.

6. When the time is successfully synchronized, tap OK.

7. Click OK.

Synchronize time with Internet Time Server in Settings

Alternatively, you can also sync the time through Windows 10's Settings app . In fact, compared to Command Prompt or Control Panel , the new options in the Settings app are much easier to access and use.

To sync time via the Settings app , first open the Settings app by pressing the Win+ shortcut I.

In the Settings app , go to Time & Language > Date & Time . On the right, click the Sync button under Synchronize your clock .

How to force time synchronization in Windows using command
Click the Sync button in the Synchronize your clock section

As soon as you click this button, Windows will synchronize the time. Again, as mentioned before, Windows uses the default time server to synchronize the time. If you want to synchronize the time through a custom time server, use the above command to synchronize the Windows time. At the time of this writing, the Settings app does not have an option to change the default time server.

Sign up and earn $1000 a day ⋙

Leave a Comment

Turn off these 7 Windows services to extend battery life!

Turn off these 7 Windows services to extend battery life!

Turning off a few of these services can save you a significant amount of battery life without affecting your daily usage.

9 Old Windows Tools That Are Still Useful Today

9 Old Windows Tools That Are Still Useful Today

From performance monitoring to quick system tweaking, these built-in utilities are as useful as ever.

How to fix error code 0x80004005

How to fix error code 0x80004005

Error code 0x80004005 is a type of unknown Windows error, whose cause is related to a number of different issues.

How to Show the Missing Bluetooth Icon on the Windows Taskbar

How to Show the Missing Bluetooth Icon on the Windows Taskbar

If you can't find the Bluetooth icon on the taskbar, follow the steps below to show the missing Bluetooth icon on Taskbar in Windows 10.

How to Clear NVIDIA Shader Cache on Windows

How to Clear NVIDIA Shader Cache on Windows

Clearing the NVIDIA Shader Cache will reset the system, forcing it to rebuild with new data. Here are instructions for clearing the NVIDIA Shader Cache.

Summary of some simple ways to disable USB ports on Windows computers

Summary of some simple ways to disable USB ports on Windows computers

Unlocking USB ports in BIOS is not difficult. However, how to lock computer USB ports? Let's find out with Quantrimang.com!

Extremely simple tips to change IP without VPN

Extremely simple tips to change IP without VPN

Being blocked online can be frustrating, whether it's a forum lockout, a game ban, or a temporary IP restriction. The good news is that you don't always need a VPN to get around these restrictions.

How to Take Advantage of the Performance Tab in Task Manager

How to Take Advantage of the Performance Tab in Task Manager

When your computer crashes, seeing how everything is running can help you troubleshoot. And when everything is working, this information can also help you optimize your system.

5 tips to help your Windows 11 laptop battery last all day

5 tips to help your Windows 11 laptop battery last all day

Windows laptops aren't known for their battery life, at least not without some tweaking. But these tips will help your laptop last all day without having to find a power outlet.

Enable or disable the built-in Administrator account on Windows

Enable or disable the built-in Administrator account on Windows

Windows 10/11 includes a hidden Administrator account that you can use to manage all the important data on your computer. Let's see how to enable or disable the built-in Administrator account on Windows 10/11!

Instructions to fix System Service Exception error on Windows

Instructions to fix System Service Exception error on Windows

System Service Exception or SYSTEM_SERVICE_EXCEPTION is one of the BSOD errors (blue screen of death errors). System Service Exceptions errors occur quite commonly and continuously.

Recover Deleted Data with Recuva Portable in Windows 7

Recover Deleted Data with Recuva Portable in Windows 7

In the following article, we will present the basic operations to recover deleted data in Windows 7 with the support tool Recuva Portable. With Recuva Portable, you can store it in any convenient USB, and use it whenever needed. The tool is compact, simple, easy to use with some of the following features:

How to delete duplicate files to save computer memory using CCleaner

How to delete duplicate files to save computer memory using CCleaner

CCleaner scans for duplicate files in just a few minutes, then lets you decide which ones are safe to delete.

10 Windows Settings You Should Never Leave as Default

10 Windows Settings You Should Never Leave as Default

Windows doesn't come with security set up by default, which means there are some default settings you need to change.

How to Download, Update, and Troubleshoot USB Drivers on Windows 10

How to Download, Update, and Troubleshoot USB Drivers on Windows 10

USB devices have become indispensable in everyday life, allowing us to connect a wide variety of essential hardware to our PCs.