{"id":69,"date":"2018-05-04T11:15:49","date_gmt":"2018-05-04T10:15:49","guid":{"rendered":"http:\/\/banfi.co.uk\/blog\/?p=69"},"modified":"2019-06-04T09:35:22","modified_gmt":"2019-06-04T08:35:22","slug":"ntp-on-a-domain-controller","status":"publish","type":"post","link":"https:\/\/banfi.co.uk\/blog\/2018\/05\/ntp-on-a-domain-controller\/","title":{"rendered":"NTP on a domain controller"},"content":{"rendered":"<p>This code sets the peerlist to the UK pools, resyncs it up and restarts the w32time server.<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\nw32tm \/config \/manualpeerlist:\"0.uk.pool.ntp.org,0x8 1.uk.pool.ntp.org,0x8 2.uk.pool.ntp.org,0x8 3.uk.pool.ntp.org,0x8\" \/syncfromflags:manual \/reliable:yes \/update\n\nw32tm \/resync \/rediscover\nw32tm \/query \/source\nnet stop w32time &amp;&amp; net start w32time\n\nw32tm \/resync \/nowait\nw32tm \/config \/syncfromflags:domhier \/update\nnet stop w32time &amp;&amp; net start w32time\n<\/pre>\n<p>And on a Hyper-V domain this usually does the trick to get the clock syncing with NTP<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\nw32tm \/config \/manualpeerlist:\"0.uk.pool.ntp.org,0x8 1.uk.pool.ntp.org,0x8 2.uk.pool.ntp.org,0x8 3.uk.pool.ntp.org,0x8\" \/syncfromflags:manual \/reliable:yes \/update\n\nw32tm \/resync \/rediscover\nw32tm \/query \/source\nnet stop w32time\nnet start w32time\nw32tm \/query \/configuration\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This code sets the peerlist to the UK pools, resyncs it up and restarts the w32time server. w32tm \/config \/manualpeerlist:&#8221;0.uk.pool.ntp.org,0x8 1.uk.pool.ntp.org,0x8 2.uk.pool.ntp.org,0x8 3.uk.pool.ntp.org,0x8&#8243; \/syncfromflags:manual \/reliable:yes \/update w32tm \/resync \/rediscover w32tm \/query \/source net stop w32time &amp;&amp; net start w32time w32tm \/resync \/nowait w32tm \/config \/syncfromflags:domhier \/update net stop w32time &amp;&amp; net start w32time And on &hellip; <a href=\"https:\/\/banfi.co.uk\/blog\/2018\/05\/ntp-on-a-domain-controller\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">NTP on a domain controller<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[16],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-server"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/banfi.co.uk\/blog\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/banfi.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/banfi.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/banfi.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/banfi.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":5,"href":"https:\/\/banfi.co.uk\/blog\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":136,"href":"https:\/\/banfi.co.uk\/blog\/wp-json\/wp\/v2\/posts\/69\/revisions\/136"}],"wp:attachment":[{"href":"https:\/\/banfi.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/banfi.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/banfi.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}