Windows Time clock cannot be synchronized

The system time is always a bit short. It was found that it was unable to synchronize with the time server. The default time server is time.windows.com.
Change to Tencent's server time1.cloud.tencent.com, and the synchronization is successful.

A little difficulty encountered in the middle

  • Open the Internet time settings, the time server cannot be changed.
  • Go to "Services" to check, the windows time service is not started. "Manual" is displayed. However, the windows time service interface is completely gray and cannot be changed.
  • Starting the service via the command line, it also failed without accident.

Solution:

  • Change the startup mode of the service by changing the registry, and change the startup mode of the Windows time service from "manual" to "automatic start".
  • In the middle, you can choose to add user permissions according to your needs.

step

1) Open the registry and find the following subkeys:

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time

Select "Start" and change the value from "3 (manual)" to "2 (automatic start)".

The meanings of the numbers are as follows

  • 1 means automatic start (delayed start)
  • 2 means automatic start
  • 3 means manual
  • 4 means disabled

2) Click "Edit"-"Permissions" in the registry menu bar to add the current user to full control.

3) Restart

At this time, you should be able to see that the time server has successfully synchronized.


Refer to this article: https://blog.frytea.com/archives/49/

Guess you like

Origin blog.csdn.net/rentonhe/article/details/107237423