ntp

Windows Server 2016/2019

Windows Key + R to open the Run dialog, type “ regedit ”, and press Enter.

[Computer>HKEY_LOCAL_MACHINE>SYSTEM>CurrentControlSet>Services>W32Time>TimeProviders>NtpServer]
Enabled=1
[Computer>HKEY_LOCAL_MACHINE>SYSTEM>CurrentControlSet>Services>W32Time>Config]
AnnounceFlags=5

0 –Timeserv_Announce_No, Reliable_Timeserv_Announce_No: Domain controllers do not publish time services

1 –Timeserv_Announce_Yes: Domain controllers always advertise time services

2–Timeserv_Announce_Auto: Domain controller automatically determines whether it should broadcast the time service

4 –Reliable_Timeserv_Announce_Yes: Domain controllers will always broadcast the Reliable Time service

8 –Reliable_Timeserv_Announce_Auto: Domain controller automatically determines whether the Reliable Time service should be broadcast

Flag is 5 (we’re actually talking about 1+4)

> Services
restart Windows Time

PowerShell(Admin)

> Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\w32time\TimeProviders\NtpServer" -Name "Enabled" -Value 1
> Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\services\W32Time\Config" -Name "AnnounceFlags" -Value 5
> Restart-Service w32Time

Open UDP port 123

> w32tm /stripchart /computer:ad-01.vmsgbj.es /dataonly /samples:5
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus