The specialpollinterval key value in HKEY_LOCAL_MACHINE \ SYSTEM \ controlset001 \ Services \ w32time \ timeproviders \ ntpclient is 60 (decimal), and the system time is calibrated once every one minute and every time on the server. That is, execute the following command for Batch Processing Reg add HKLM \ System \ controlset001 \ Services \ w32time \ timeproviders \ ntpclient/V specialpollinterval/T REG_DWORD/D 60/F ========================================================= ==================== By default, Windows Server serves as the time synchronization client. You can double-click the system time and set the time synchronization on the "Internet time" attribute page. Obviously, the system is used as the client by default. Therefore, you must modify the settings so that the system acts as the server for time synchronization. 1. Modify the key values of the following items in the Registry HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ w32time \ timeproviders \ enabled in ntpserver is set to 1 to enable the time synchronization service function. 2. Modify the following key values Set "announceflags" in HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ w32time \ config to "5", which means that the host is forced to declare itself as a reliable time source and use the CMOS clock. If it is set to "A", it indicates that the time server outside is used. 3. Restart the win32time service. Run the following command: Net stop w32time & Net start w32time The "&" symbol indicates that two commands are executed simultaneously. ++ Client settings: 1. Modify the registry settings of the client. HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ w32time \ timeproviders \ ntpclient "Specialpollinterval" time interval (in seconds, 43200 is 12 hours ); "Specialpolltimeremaining" time synchronization server, in the format of "IP address, 0", for example: 192.168.1.1, 0. 2. Restart the win32time service. Net stop w32time & Net start w32time In this way, you do not need to restart your computer. If you want to change the time immediately, you can set the time to 1 or 2 seconds. |