Share via

Command to force time to reset to current

Anonymous
2020-05-11T16:47:11+00:00

I switch back and forth between Windows 10 and Linux (running via USB). This confuses Windows which never displays current time (it's always six hours off). Is there a command to enter, whether in a command prompt or in settings, that would force Windows to look at the time stored in the motherboard and update itself?

Windows for home | Windows 10 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Anonymous
    2020-05-12T10:01:31+00:00

    Hi,

    Thank you for writing to Microsoft Community Forums.

    I understand that you are looking for a command to reset the Windows time. I’ll certainly assist you with this.

    You may want to use the commands mentioned below and see if that helps:

    1. Type Command Prompt in the search bar on the Taskbar.
    2. Right click on Command Prompt icon and select Run as administrator.
    3. Type the following commands one-by-one and hit Enter:

    net stop w32timew32tm /unregisterw32tm /registernet start w32timew32tm /resync

    You can also check if the Windows Time service is running and the Startup type is set to Automatic. To do this, refer the steps mentioned below:

    1. Press Windows logo key + R, to open Run dialog box.
    2. Type services.msc and click on OK.
    3. Look for Windows Time service, and double click on it.
    4. Now, click on the drop down for the Startup type and select Automatic.
    5. Click on Start and click on OK.

    You can also try synchronizing the time with Internet, refer the steps mentioned below:

    1. Press Windows logo key + I, to open Settings dialog box.
    2. Click on Time & Language and select Date & Time on the left pane.
    3. Under Related settings, click on Add clocks for different time zone.
    4. Click on Internet Time, and select Change settings.
    5. Click on Update now.

    Let us know how it goes.

    Regards,

    Nikhar Khare

    Microsoft Community - Moderator

    20+ people found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2020-05-13T15:06:43+00:00

    There are a couple other ways to make it work.  

    You can set the RTC in Linux to local time zone.  Using the following command:

    timedatectl set-local-rtc 1 --adjust-system-clock

    Or, you can make a change in the Windows registry to set Windows to recognize the Real Time Clock as UTC time, which is what Linux uses. 

    See the following link for specific information:

    https://www.howtogeek.com/323390/how-to-fix-windows-and-linux-showing-different-times-when-dual-booting/

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2020-05-14T01:57:31+00:00

    Hi,

    Thank you for replying.

    Glad to know that the changing the startup type of the service worked.

    Please feel free to contact us back for any Windows related issues/queries, we will be glad to help you.

    Regards,

    Nikhar Khare

    Microsoft Community - Moderator

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2020-05-13T14:53:55+00:00

    Thanks for the reply. I chose option #2. The service was set to manual, which was why the time never updated. I changed it to automatic and a few minutes after a reboot, the time changed to current time.

    1 person found this answer helpful.
    0 comments No comments
  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more