Windows server2012 time synchronization NTP configuration

Source: Internet
Author: User

Windows server2012 time synchronization NTP configuration


You can set up a time synchronization server when you encounter regular server time, and NTP is configured as follows:

First, the server configuration (NTP server, the client will be synchronized according to the time of the servers )

1, The Microsoft key +r key, enters "the operation", enters "regedit", enters the registration form

2, Hkey_local_machine\system\currentcontrolset\services\w32time\parameters\type

Right-click Modify to NTP (the default is NTP, you can do the same if it is already NTP do not change)

3. The enabled value of the modified Hkey_local_machine\system\currentcontrolset\services\w32time\timeproviders\ntpserver is 1 (formerly 0)

4, modify the Hkey_local_machine\system\currentcontrolset\services\w32time\config "AnnounceFlags" value is 5 (originally a)

5. Restart Time service

net stop W32Time && net start W32Time

6. Press Start and run, enter "Services.msc" to enter the service, set the Windows Time service start mode to auto

Second, the client configuration

The client needs to synchronize the time on the time server, which is set up in two ways: graphical interface settings, modification of the registry

The first method: The graphical setting of the interface

1. Click the time setting option to pop up the following screen:

2, Click the Modify time settings, the following screen popup:

The IP address in the image is the IP address of the NTP time synchronization server, which is set up according to the personal environment, then click Update Now to sync.

The second method modifies the registry:

1, find Hkey_local_machine\system\currentcontrolset\services\w32time\parameters\ntpserver, modify the value for the set of NtpServer IP, after adding, 0x1 such as: "172.31.4.51,0x1". Note that the IP is followed by commas and 0x1.

2, modify the "SpecialPollInterval" in Hkey_local_machine\system\currentcontrolset\services\w32time\timeproviders\ntpclient ",
This represents the interval, how long and the NTP server synchronizes once, in seconds, the original value is "93A80" (16 binary)

3, change the value of updateinterval in Hkey_local_machine\system\currentcontrolset\services\w32time\timeproviders\config, I change here 5 , but in fact I am not sure this to set, I myself in the process of the test found that this is not set as if it is not synchronized, so I set up, the network other people said that the configuration does not have this step. The original default value is 360000 (decimal).

4, set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\MaxNegPhaseCorrection to FFFFFFFF (formerly D2F0 Hexadecimal

Set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\MaxPosPhaseCorrection to FFFFFFFF (formerly D2f0, Hexadecimal

MaxNegPhaseCorrection This represents the time that is slower than the NTP server, if the local time exceeds the NTP server maxnegphasecorrection seconds, it is out of sync;

MaxPosPhaseCorrection this represents a time faster than the NTP server, and if the local time exceeds the NTP server maxnegphasecorrection seconds, it is not synchronized

5. Restart W32Time service
net stop w32time && net start W32Time

6, press Start and run, enter "Services.msc" Enter the service, the Windowns Time service start mode set to Auto


Windows server2012 time synchronization NTP configuration

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.