Add NTP server to the NTP Client list
How to add an adition NTP server to Windows 10, open COMMAND:
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters” /v NtpServer /t REG_SZ /d “pool.ntp.org,0x1 time1.google.com,0x1 time.windows.com,0x9” /f
Restart the service:
sc config W32Time start=auto
Verify the configuration:
w32tm /query /configuration
Thanks to: techexpert.tips
Enable NTP server service in Windows 10
Use Windows 10 as NTP Server.
Open the command prompt (cmd) as administrator and fire the following commands:
- Enable the NTP server service
net stop W32Time
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\W32Time\Config” /v LocalClockDispersion /t REG_DWORD /d 0 /f
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters” /v LocalNTP /t REG_DWORD /d 1 /f
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\W32Time\TimeProviders\NtpServer” /v Enabled /t REG_DWORD /d 1 /f
reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\W32Time\Config” /v AnnounceFlags /t REG_DWORD /d 5 /f
sc config W32Time start=auto
net start W32Time
2. Check if the NTP server is enabled
w32tm /query /configuration
See in the output the 2nd last line, Enabled: 1 (local) is correct.
NtpServer (Local)
DllName: C:\Windows\system32\w32time.dll (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)
3. Allow rule in the firewall
netsh advfirewall firewall add rule name=”NTP Server” dir=in protocol=udp localport=123 profile=any enable=yes action=allow
4. Test the service from external system
w32tm /stripchart /computer:192.168.0.10 /samples:4 /dataonly
Enable PING reply in Windows 10
To enable PING reply in Windows 10 the firewall needs to allow the ping request.
Open the command prompt (cmd) with administrator rights and fire the following command.
netsh advFirewall Firewall add rule name=”PING IPv4 allow” protocol=icmpv4:8,any dir=in action=allow