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