Windows Server R2 Setting NTP service

Source: Internet
Author: User
Tags local time

In fact, and the previous version of the server configuration is nothing different

Change the registry first:

Hkey_local_machine\system\currentcontrolset\services\w32time\config\

Set AnnounceFlags to 5

Hkey_local_machine\system\currentcontrolset\services\w32time\timeproviders\ntpserver\

Set Enabled to 1

Then restart the service (in fact, the win server12 default is not enabled W32Time service ... )

net stop w32time net start W32Time

Finally join the firewall rule, open port 123, command prompt:

Add portopening protocol = UDP Port =123 name = NTPSERVER

Then the terminal can be set to sync

Recommended terminal modification under time interval, registry:

Hkey_local_machine\system\currentcontrolset\services\w32time\timeproviders\ntpclient

SpecialPollInterval default = 604800 = 7 Days * 24 hours * 60 Minutes * 60 seconds (i.e. the default is one week synchronization)

Change to the time that you think is appropriate

In addition, there are several optional configurations on the server side, the registry:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters

NtpServer To synchronize the time service source, you can directly change the registry to specify (not necessarily to be set in the Control Panel, in fact, the two effects are the same)

 

Hkey_local_machine\system\currentcontrolset\ Services\w32time\config

MaxNegPhaseCorrection indicates that if the network time is faster than the local time, the number of seconds will not be automatically corrected

MaxPosPhaseCorrection Indicates that if the network time is slower than the local time, more than this number of seconds will not be automatically corrected

To set the value to FFFFFFFF (hexadecimal)

for each bound correction
Related Article

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.