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

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Fix Windows Error Code 0xc0000098: Backup ACPI.sys to Prevent Boot Failure

Error code 0xc0000098 in Windows causes a blue screen error on startup. The ACPI.sys driver is often to blame, especially on unsupported versions of Windows 11 like 23H2 or 22H2 or Windows 10.

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

Quickly fix Windows 10/8/7 computer error that freezes and cannot exit Safe Mode

In some cases, sometimes you start your computer in Safe Mode and the computer freezes. So how to fix the error in this case, please refer to the article below of WebTech360.

How to fix Snipping Tool keeps showing error

How to fix Snipping Tool keeps showing error

Snipping Tool is a powerful photo and video capture tool on Windows. However, this tool sometimes has some errors, such as constantly displaying on the screen.

How to get the fastest internet connection from your router

How to get the fastest internet connection from your router

Every network has a router to access the Internet, but not everyone knows how to make the router work better. In this article, we will introduce some router tips to help speed up the wireless connection in the network.

Common Mistakes When Performing Internet Speed ​​Tests

Common Mistakes When Performing Internet Speed ​​Tests

If the results seem slower than expected, don't be too quick to blame your ISP - mistakes when performing the test can skew your numbers.

What is QoS? How to use QoS for faster Internet speeds when you need it most

What is QoS? How to use QoS for faster Internet speeds when you need it most

In the article below, we will introduce and guide you to learn about the concept of QoS - Quality of Service on router devices.

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Why cant this built-in Credential Manager feature in Windows replace a password manager?

Windows has a built-in Credential Manager, but it's not what you think it is—and certainly not a replacement for a password manager.

How to install free HEVC codecs on Windows 10 (for H.265 video)

How to install free HEVC codecs on Windows 10 (for H.265 video)

Microsoft charges for its official codecs and doesn't include them in Windows 10. However, you can get them for free without pulling out your credit card and spending $0.99.

Instructions to fix Access Denied error when accessing files or folders on Windows

Instructions to fix Access Denied error when accessing files or folders on Windows

While having trouble accessing files and folders can be frustrating, don't panic—with a few simple tweaks, you can regain access to your system.

How to check if USB Boot has been created successfully?

How to check if USB Boot has been created successfully?

After creating a USB boot to install Windows, users should check the USB boot's performance to see if it was created successfully or not.

4 Types of Windows Data That Are Growing in Size: How to Control Them?

4 Types of Windows Data That Are Growing in Size: How to Control Them?

Although Windows Storage Sense efficiently deletes temporary files, some types of data are permanent and continue to accumulate.

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

How to turn off background apps in Windows 11, reduce RAM consumption on Win 11

You can turn off Windows 11 background apps to optimize performance, save battery and reduce RAM consumption.

Instructions to fix the error “Network path was not found” in Windows

Instructions to fix the error “Network path was not found” in Windows

When a computer, mobile device, or printer tries to connect to a Microsoft Windows computer over a network, for example, the error message network path was not found — Error 0x80070035 may appear.

How to block Internet connection of Windows 10 software and applications

How to block Internet connection of Windows 10 software and applications

We can block Internet access for any application or software on the computer, while other programs can still access the network. The following article will guide readers on how to disable Internet access for software and applications on Windows.

How to Stay Safe on Windows 10 Until 2030

How to Stay Safe on Windows 10 Until 2030

Instead of paying $30 for a year of security updates, keep Windows 10 safe until 2030 with this simple solution.