{"id":659,"date":"2022-03-01T09:14:11","date_gmt":"2022-03-01T08:14:11","guid":{"rendered":"https:\/\/karelkeers.nl\/karelkeers.nl\/?p=659"},"modified":"2022-09-21T09:32:03","modified_gmt":"2022-09-21T08:32:03","slug":"enable-ntp-server-service-in-windows-10","status":"publish","type":"post","link":"https:\/\/karelkeers.nl\/karelkeers.nl\/enable-ntp-server-service-in-windows-10\/","title":{"rendered":"Enable NTP server service in Windows 10"},"content":{"rendered":"\n<p><p>Use Windows 10 as NTP Server.<\/p>\n<p>Open the command prompt (cmd) as administrator and fire the following commands:<\/p><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Enable the NTP server service<\/strong><\/li><\/ol>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\nnet stop W32Time<br>\nreg add &#8220;HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\W32Time\\Config&#8221; \/v LocalClockDispersion \/t REG_DWORD \/d 0 \/f<br>\nreg add &#8220;HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\Parameters&#8221; \/v LocalNTP \/t REG_DWORD \/d 1 \/f<br>\nreg add &#8220;HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\W32Time\\TimeProviders\\NtpServer&#8221; \/v Enabled \/t REG_DWORD \/d 1 \/f<br>\nreg add &#8220;HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\W32Time\\Config&#8221; \/v AnnounceFlags \/t REG_DWORD \/d 5 \/f<br>\nsc config W32Time start=auto<br>\nnet start W32Time\n<\/p><\/blockquote>\n\n\n\n<p>2. <strong>Check if the NTP server is enabled<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>w32tm \/query \/configuration<\/p><\/blockquote>\n\n\n\n<p><strong>See in the output the 2nd last line, Enabled: 1 (local) is correct.<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p> \nNtpServer (Local)<br>\nDllName: C:\\Windows\\system32\\w32time.dll (Local)<br>\nEnabled: 1 (Local)<br>\nInputProvider: 1 (Local)<br>\n<\/p><\/blockquote>\n\n\n\n<p><br><strong>3. Allow rule in the firewall<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>netsh advfirewall firewall add rule name=&#8221;NTP Server&#8221; dir=in protocol=udp localport=123 profile=any enable=yes action=allow<\/p><\/blockquote>\n\n\n\n<p><br><strong>4. Test the service from external system<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>w32tm \/stripchart \/computer:192.168.0.10 \/samples:4 \/dataonly<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8220;HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\W32Time\\Config&#8221; \/v LocalClockDispersion \/t REG_DWORD \/d 0 \/f reg add &#8220;HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\Parameters&#8221; \/v LocalNTP \/t REG_DWORD \/d 1 \/f reg add &#8220;HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\W32Time\\TimeProviders\\NtpServer&#8221; \/v Enabled \/t REG_DWORD \/d 1 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[21,36,35],"tags":[37],"class_list":["post-659","post","type-post","status-publish","format-standard","hentry","category-internet","category-networks","category-windows","tag-windows"],"_links":{"self":[{"href":"https:\/\/karelkeers.nl\/karelkeers.nl\/wp-json\/wp\/v2\/posts\/659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/karelkeers.nl\/karelkeers.nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/karelkeers.nl\/karelkeers.nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/karelkeers.nl\/karelkeers.nl\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/karelkeers.nl\/karelkeers.nl\/wp-json\/wp\/v2\/comments?post=659"}],"version-history":[{"count":7,"href":"https:\/\/karelkeers.nl\/karelkeers.nl\/wp-json\/wp\/v2\/posts\/659\/revisions"}],"predecessor-version":[{"id":677,"href":"https:\/\/karelkeers.nl\/karelkeers.nl\/wp-json\/wp\/v2\/posts\/659\/revisions\/677"}],"wp:attachment":[{"href":"https:\/\/karelkeers.nl\/karelkeers.nl\/wp-json\/wp\/v2\/media?parent=659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/karelkeers.nl\/karelkeers.nl\/wp-json\/wp\/v2\/categories?post=659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/karelkeers.nl\/karelkeers.nl\/wp-json\/wp\/v2\/tags?post=659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}