Synchronize Windows Time Server at Logon?


  1. Posts : 21
    Windows 10 Pro x64
       #1

    Synchronize Windows Time Server at Logon?


    What I'm looking for is a file or script or some way to have Windows 10 Pro v1909 update with the Windows Time Server automatically at system logon. The reason for this is that my system is a dual-boot setup with a Linux distro, and when I have been using the other OS, the time shows up as something like: 23:59, when the actual time is only 16:00 (Yes, I use military time, and that's 4 PM.)

    So, what I want to do is have something setup to synchronize the system's time on login so that I don't have to continuously reset it manually after a reboot.
      My Computer


  2. Posts : 56,830
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #2

    Silverhand92 said:
    What I'm looking for is a file or script or some way to have Windows 10 Pro v1909 update with the Windows Time Server automatically at system logon. The reason for this is that my system is a dual-boot setup with a Linux distro, and when I have been using the other OS, the time shows up as something like: 23:59, when the actual time is only 16:00 (Yes, I use military time, and that's 4 PM.)

    So, what I want to do is have something setup to synchronize the system's time on login so that I don't have to continuously reset it manually after a reboot.
    One way would be to copy the existing Windows scheduled job entry and modify it to run whenever you would like, such as login, or system startup. It's found in the Job Scheduled Tasks under the Windows jobs in the left pane.

    Synchronize Windows Time Server at Logon?-2019-12-11_20h24_09.png
      My Computers


  3. Posts : 14,022
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #3

    The reason for this is that my system is a dual-boot setup with a Linux distro, and when I have been using the other OS, the time shows up as something like: 23:59, when the actual time is only 16:00 (Yes, I use military time, and that's 4 PM.
    You are in the same time zone as me, MST. The 23:59 you show would probably be GMT/UTC. At 7:31PM today GMT is showing as 02:31AM, 7 hours between MST and GMT. Sometimes Linux gets mixed up on the time zone part but my Mint has been pretty good lately. I don't know how it will work with dual-booting but I set my Win10 time/clocks for 2 time zones, default is MST and the second is named UTC_GMT [I worked with GMT for over 30 years, it is common for aviation and maritime use since several time zones can be involved in just hours]. One other thing, my Linux Mint is a different computer, actually a Desktop and 2 Notebooks.
      My Computers


  4. Posts : 240
    Dual Boot Windows 11 & 10, usually latest version
       #4
      My Computers


  5. Posts : 21
    Windows 10 Pro x64
    Thread Starter
       #5

    That worked! (Solved!)
      My Computer


  6. Posts : 274
    WIN10
       #6

    For future readers: Setting Linux to use local clock has always caused an error (harmless?) at boot time about "superblock last mount time is in the future". Setting Windows to use RealTimeIsUniversal seemed to work better and can be done/undone with a double click of a registry (one for on, another for off) file. As the link posted above covers, here's the quick and easy way to do it.

    Make a text file and paste the text below into it, then name it accordingly with ".reg" extension. Then double click the one you want to use (reboot to take effect), sync your time. Also, just FYI, you can change the time server Windows uses. I use pool.ntp.org for example.

    RealTimeIsUniversal On.reg = Like Linux:
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
    "RealTimeIsUniversal"=dword:00000001

    RealTimeIsUniversal Off.reg = Windows Default:
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
    "RealTimeIsUniversal"=-
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:45.
Find Us




Windows 10 Forums