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

Windows 11 updates silently create a mysterious folder on the C drive

Windows 11 updates silently create a mysterious folder on the C drive

The April security updates for Windows 11 silently created a new empty folder on the C drive.

How to delete the Learn More About This Picture icon Windows 11

How to delete the Learn More About This Picture icon Windows 11

The Spotlight wallpaper on the Windows 11 desktop and lock screen has an annoying “Learn More About This Picture” icon. Here is a guide to remove the “Learn More About This Picture” Windows 11 icon.

9 ways to open Apps & Features tool on Windows 11

9 ways to open Apps & Features tool on Windows 11

The Apps & Features control panel is the settings equivalent to the Programs and Features tool from the Control Panel.

How to display Libraries folder on Windows 11

How to display Libraries folder on Windows 11

The Libraries folder in Windows 11 is hidden in the File Explorer interface, but you can easily show it again with just a few taps.

How to fix high memory usage issue on Microsoft Edge

How to fix high memory usage issue on Microsoft Edge

Are you getting a High Memory Usage Detected warning while browsing on Microsoft Edge? It means that some browser processes are using too much memory (RAM).

How to set up speech recognition in Windows

How to set up speech recognition in Windows

Follow these steps to set up speech recognition on your Windows laptop or PC.

Restore hidden folders in Windows when infected with virus

Restore hidden folders in Windows when infected with virus

In many cases, it is usually due to virus attacks that the hidden folders of the system cannot be displayed even after activating the “Show hidden files and folders” option in Folder Options. Some of the following methods will help to handle this problem.

3 ways to turn off Windows 10 firewall

3 ways to turn off Windows 10 firewall

Sometimes you still need to turn off the firewall to perform certain functions. The 3 ways to turn off the Win 10 firewall below will help you in such situations.

How to add Shutdown desktop shortcut in Windows 11

How to add Shutdown desktop shortcut in Windows 11

If you're looking for a quicker method, here's how to add a dedicated shutdown shortcut to your Windows 11 desktop or taskbar.

How to add JPEG XL support in Windows 11

How to add JPEG XL support in Windows 11

Windows 11 doesn't support the JPEG X image format by default, but you can install an add-on that does. Here's how to add JPEG XL support in Windows 11.

Instructions to fix the error of not being able to pin applications to the Windows 11 Taskbar

Instructions to fix the error of not being able to pin applications to the Windows 11 Taskbar

In the process of pinning applications, sometimes we encounter some errors such as not being able to pin the application to the Taskbar. Below are some ways to fix the error of not being able to pin the application to the Windows 11 Taskbar.

Should I use Windows BitLocker to encrypt my hard drive?

Should I use Windows BitLocker to encrypt my hard drive?

Windows BitLocker offers an easy-to-use solution for encrypting your hard drive. However, it also has its drawbacks, so it may not be a great choice for everyone.

How to Overwrite Deleted Data on a Drive in Windows 11/10

How to Overwrite Deleted Data on a Drive in Windows 11/10

This guide will show you how to overwrite (securely erase) deleted data on a drive so that it cannot be recovered or accessed in Windows 10 and Windows 11.

Tips to add Copilot to Windows 11 right-click menu

Tips to add Copilot to Windows 11 right-click menu

If you regularly use Copilot on Windows 11, there is a very simple way to quickly access Copilot, which is to add Copilot to the right-click menu.

How to add a printer to Windows 10

How to add a printer to Windows 10

Adding a printer to Windows 10 is simple, although the process for wired devices will be different than for wireless devices.