Python synchronizes windows Time and python synchronizes windows Time.
Import OS
Com1 = 'net use \\\\ 192.168.0.90 \ ipc $ PPss01! 123/user: administrator'
OS. system (com1)
Com2 = 'net time \\\\ 192.168.0.90/set/yes'
OS. system (com2)
Com3 = 'pause'
OS. system (com3)
How to Implement server Time Synchronization Through NTP protocol in Windows (python or C)
(You know you cannot send a link .)
1. Obtain the NTP server time. Locate ntplib in pypi. There are examples.
2. Set the windows system time. There are many methods. You can use the date command directly. You can also use the win32API SetSystemTime, which has better precision control and can be set to ms.
If you want to periodically schedule tasks, set the scheduled tasks.
Windows System Time Synchronization
You open the windows time and date Properties dialog box
There is time synchronization with the INTERNET, and then enter your server address!
You can implement automatic update pull.