{"id":552,"date":"2022-09-23T15:39:46","date_gmt":"2022-09-23T22:39:46","guid":{"rendered":"https:\/\/blog.iabsolute.com\/?p=552"},"modified":"2022-09-23T15:39:46","modified_gmt":"2022-09-23T22:39:46","slug":"synchronize-time-with-external-ntp-server-on-windows-server","status":"publish","type":"post","link":"https:\/\/blog.iabsolute.com\/?p=552","title":{"rendered":"Synchronize time with external NTP server on Windows Server"},"content":{"rendered":"\n<p>NTP synchronization is an important aspect for all computers on the network. By default, the clients computers get their time from a Domain Controller and the Domain Controller gets it&#8217;s time from the domain\u2019s PDC Operation Master. Therefore the PDC must synchronize it&#8217;s time from an external source. I usually use the servers listed at the NTP Pool Project&nbsp;<a href=\"http:\/\/www.pool.ntp.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">website<\/a>. Before you begin, don\u2019t forget to open the default UDP 123 port (from Lan to Wan) on your firewall.<\/p>\n\n\n\n<p>1) First, locate your PDC Server. Open the command prompt and&nbsp;type:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">netdom \/query fsmoCopy<\/pre>\n\n\n\n<p>2) Login to your PDC and open the command prompt as the Administrator 3) Stop the w32Time Service<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">net stop w32timeCopy<\/pre>\n\n\n\n<p>4) Configure the external time sources, type<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">w32tm \/config \/syncfromflags:manual \/manualpeerlist:\u201d0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org\u201dCopy<\/pre>\n\n\n\n<p>5) Make your PDC a reliable time source for the clients<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">w32tm \/config \/reliable:yesCopy<\/pre>\n\n\n\n<p>6) Start the w32time Service<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">net start w32timeCopy<\/pre>\n\n\n\n<p>7) Check thes servers time configuration<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">w32tm \/query \/configurationCopy<\/pre>\n\n\n\n<p>8) Check the Event Viewer for any errors<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">More helpfull w32tm commands<\/h3>\n\n\n\n<p>Force synchronizing the time asap<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">w32tm \/resync \/nowaitCopy<\/pre>\n\n\n\n<p>Display time source<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">w32tm \/query \/sourceCopy<\/pre>\n\n\n\n<p>Display list of all configured NTP servers and their status<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">w32tm \/query \/peersCopy<\/pre>\n\n\n\n<p>Display time service status i.e whether it is getting time from local cmso clock\/external NTP server<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">w32tm \/query \/statusCopy<\/pre>\n\n\n\n<p>The Windows Time Service logs several events in the Windows System log, which can be viewed in the Event Viewer application.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NTP synchronization is an important aspect for all computers on the network. By default, the clients computers get their time from a Domain Controller and the Domain Controller gets it&#8217;s time from the domain\u2019s PDC Operation Master. Therefore the PDC &hellip; <a href=\"https:\/\/blog.iabsolute.com\/?p=552\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7],"tags":[],"class_list":["post-552","post","type-post","status-publish","format-standard","hentry","category-my-windows","category-windows"],"_links":{"self":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=552"}],"version-history":[{"count":1,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/552\/revisions"}],"predecessor-version":[{"id":553,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/552\/revisions\/553"}],"wp:attachment":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}