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

Instructions for resetting utilities on Windows 11

Instructions for resetting utilities on Windows 11

If Windows 11 taskbar Widgets are not working, unavailable, not opening, frozen, or malfunctioning and restarting Widgets doesn't help, then you can reset the widgets on your computer.

Windows Sandbox: The Secret App That Lets You Open Anything Without Risk

Windows Sandbox: The Secret App That Lets You Open Anything Without Risk

Using this tool, you can safely check suspicious files, install suspicious software, or browse dangerous websites without risking damage to your main computer.

Instructions for fixing Task Manager has been Disabled by your Administrator

Instructions for fixing Task Manager has been Disabled by your Administrator

You may wonder why Task Manager is disabled? But don't worry! The following article will guide you through the best solutions to fix Task Manager when it is not working.

How to enable advanced settings on Windows 11

How to enable advanced settings on Windows 11

Microsoft introduces redesigned Advanced Settings page in Windows 11, adding system customization for developers and users with new features

How to fix “Docker: Invalid Reference Format” error

How to fix “Docker: Invalid Reference Format” error

Docker makes it easy to build, run, and manage containers. However, you may encounter an Invalid Reference Format error when running or building an image.

These safe alternatives to public Wi-Fi help protect your data

These safe alternatives to public Wi-Fi help protect your data

Whether you're working at a coffee shop or checking email at the airport, these more secure alternatives will keep your data secure without sacrificing your connection.

7 Smart Ways to Use Your Monitor Without a Computer

7 Smart Ways to Use Your Monitor Without a Computer

When you think of a monitor, you might imagine it connected to a PC or laptop. However, that monitor can actually work with many other devices.

How to turn off background applications on Windows

How to turn off background applications on Windows

Turning off background applications on Windows 10 will help your computer run less sluggishly and save system resources. The following article by WebTech360 will guide readers on how to turn off background applications on Windows 10.

How to Build the Perfect, Cheap Streaming System in a Tiny Dorm Room

How to Build the Perfect, Cheap Streaming System in a Tiny Dorm Room

After countless hours of using their college laptop and desktop speaker setup, many people discover that a few clever upgrades can turn their cramped dorm space into the ultimate streaming hub without breaking the bank.

8 hidden Windows touchpad gestures that make your workflow lightning fast

8 hidden Windows touchpad gestures that make your workflow lightning fast

A laptop's touchpad isn't just for pointing, clicking, and zooming. The rectangular surface also supports gestures that let you switch between apps, control media playback, manage files, and even view notifications.

How to fix Bad System Config Info error in Windows 10

How to fix Bad System Config Info error in Windows 10

Bad System Config Info is a common bug check error on Windows 10 systems. Let's look at some solutions to fix this issue.

How to make Taskbar transparent on Windows 11

How to make Taskbar transparent on Windows 11

Like Windows 10, you can also use third-party software to make Windows 11 Taskbar transparent.

How to invert screen colors using Magnifier Windows 11

How to invert screen colors using Magnifier Windows 11

Using the Magnifier inversion feature on Windows 11 can improve text readability, especially for people who are sensitive to light.

4 ways to pin windows on Windows screen

4 ways to pin windows on Windows screen

If you are wondering how to pin any window to always be on top of other windows (always on top), read this article right away!

Enable XMP to optimize RAM speed

Enable XMP to optimize RAM speed

If you're looking to build your own PC system and decide to invest in some high-speed RAM, how do you make sure your RAM can perform at the advertised speeds?