Shorten and time server synchronization time, lan time server setup and client settings

Source: Internet
Author: User
Shorten and time server synchronization Time Local Area Network Time Server Setup and client settings

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.