<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NTP | KC's Blog</title>
	<atom:link href="https://www.kjctech.net/tag/ntp/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.kjctech.net</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2023 18:21:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/12/cropped-KC-Logo.png?fit=32%2C32&#038;ssl=1</url>
	<title>NTP | KC's Blog</title>
	<link>https://www.kjctech.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">24634607</site>	<item>
		<title>Syncing Time within An Active Directory Domain Checklist</title>
		<link>https://www.kjctech.net/syncing-time-within-an-active-directory-domain-checklist/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=syncing-time-within-an-active-directory-domain-checklist</link>
					<comments>https://www.kjctech.net/syncing-time-within-an-active-directory-domain-checklist/#respond</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Mon, 24 Jun 2019 23:37:10 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[NTP]]></category>
		<category><![CDATA[w32tm]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=4368</guid>

					<description><![CDATA[<p>A computer that had 30 seconds ahead of the domain controller got me to do this sanity check to see if the time is synchronized across the whole network. Why? Because having time off all over the place will cause all sorts of weird issues. It&#8217;s just that important. Here is a checklist of things you need to know when [&#8230;]</p>
The post <a href="https://www.kjctech.net/syncing-time-within-an-active-directory-domain-checklist/">Syncing Time within An Active Directory Domain Checklist</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>A computer that had 30 seconds ahead of the domain controller got me to do this sanity check to see if the time is synchronized across the whole network. Why? Because having time off all over the place will cause all sorts of weird issues. It&#8217;s just that important.</p>



<p>Here is a checklist of things you need to know when it comes to syncing time in a Windows domain based network.</p>



<p>Firs of all, where to check to know what the exact time is right now?</p>



<p><a href="https://time.is/" target="_blank" rel="noreferrer noopener" aria-label="Time.is (opens in a new tab)">Time.is</a> is that place that tells you not only what the time is now but checks if your computer clock is off.</p>



<figure class="wp-block-image"><img fetchpriority="high" decoding="async" width="952" height="475" src="https://i1.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-14.png?fit=600%2C299&amp;ssl=1" alt="" class="wp-image-4369" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-14.png?w=952&amp;ssl=1 952w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-14.png?resize=250%2C125&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-14.png?resize=450%2C225&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-14.png?resize=768%2C383&amp;ssl=1 768w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-14.png?resize=600%2C299&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-14.png?resize=700%2C349&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-14.png?resize=520%2C259&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-14.png?resize=360%2C180&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-14.png?resize=100%2C50&amp;ssl=1 100w" sizes="(max-width: 640px) 100vw, 640px" /></figure>



<h2 class="wp-block-heading">How to sync time for Domain Controller</h2>



<p>Since my domain controller is virtualized, I don&#8217;t actually need to do anything on AD level. All I need is to make sure the host that all VMs rely on has an accurate time all the time. Basically, I can enable the NTP Client on the host and have it sync to specified NTP servers.</p>



<figure class="wp-block-image"><img data-recalc-dims="1" decoding="async" width="594" height="262" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-15.png?resize=594%2C262&#038;ssl=1" alt="" class="wp-image-4370" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-15.png?w=594&amp;ssl=1 594w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-15.png?resize=250%2C110&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-15.png?resize=450%2C198&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-15.png?resize=520%2C229&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-15.png?resize=360%2C159&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-15.png?resize=100%2C44&amp;ssl=1 100w" sizes="(max-width: 594px) 100vw, 594px" /></figure>



<p>If setting up NTP on the host level isn&#8217;t an option, maybe because the host doesn&#8217;t have the access to the internet, here is what you can also do.</p>



<p>Open an elevated Command Prompted window on the domain controller and run the following command:</p>



<pre class="wp-block-preformatted">net stop w32time
w32tm /config /manualpeerlist:"0.uk.pool.ntp.org,0x1 1.uk.pool.ntp.org,0x1 2.uk.pool.ntp.org,0x1 3.uk.pool.ntp.org,0x1"
w32tm /config /reliable:yes
net start w32time</pre>



<p>Now, running <code>w32tm /resync</code> should be completed successfully.</p>



<h2 class="wp-block-heading">How to sync time on domain workstations</h2>



<p>The quickest way to sync your computer with the domain time is to run the following command in an elevated Command Prompt window.</p>



<pre class="wp-block-preformatted">net time /domain</pre>



<p>You can schedule it or put it as part of your login script so it runs frequently enough to keep the time synced with AD all the time. But obviously, it&#8217;s not ideal because it&#8217;s better done in Group Policy level if you are in an AD environment.</p>



<p>Open the Group Policy assigned to an OU that includes all the workstations on your network and then navigate to the following location:</p>



<pre class="wp-block-preformatted">Computer Configuration > Policies > Administrative Templates > System > Windows Time Service > Time Providers</pre>



<p>Enable the <strong>Configure Windows NTP Client</strong> policy and set <em>yourdc.yourdomain,0x1</em> as the <strong>NtpServer</strong>.</p>



<p>And enable the &#8220;<strong>Enable Windows NTP Client</strong>&#8221; policy afterwards.</p>



<figure class="wp-block-image"><a href="//i0.wp.com/kjctech.net/wp-content/uploads/2019/06/image-16.png" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img decoding="async" width="787" height="565" src="https://i1.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-16.png?fit=600%2C431&amp;ssl=1" alt="" class="wp-image-4371" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-16.png?w=787&amp;ssl=1 787w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-16.png?resize=250%2C179&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-16.png?resize=450%2C323&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-16.png?resize=768%2C551&amp;ssl=1 768w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-16.png?resize=600%2C431&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-16.png?resize=700%2C503&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-16.png?resize=520%2C373&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-16.png?resize=360%2C258&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2019/06/image-16.png?resize=100%2C72&amp;ssl=1 100w" sizes="(max-width: 640px) 100vw, 640px" /></a></figure>



<p>To test it out, you can either reboot a workstation or run <code>GPUpdate /Force</code> to update the policy on the local computer and run the following to display the status of the time service.</p>



<pre class="wp-block-preformatted">w32tm /query /status</pre>



<p>That&#8217;s about it. Here are a few w32tm command options that you use to find more information:</p>



<p><strong>w32tm /query /configuration</strong>&nbsp;– check NTP configuration</p>



<p><strong>w32tm /query /source</strong>&nbsp;– display time source</p>



<p><strong>w32tm /query /peers</strong>&nbsp;– display the list of all configured NTP servers and their status</p>The post <a href="https://www.kjctech.net/syncing-time-within-an-active-directory-domain-checklist/">Syncing Time within An Active Directory Domain Checklist</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/syncing-time-within-an-active-directory-domain-checklist/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4368</post-id>	</item>
		<item>
		<title>Configuring AD Server to Sync Time with External NTP Server</title>
		<link>https://www.kjctech.net/configuring-ad-server-to-sync-time-with-external-ntp-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=configuring-ad-server-to-sync-time-with-external-ntp-server</link>
					<comments>https://www.kjctech.net/configuring-ad-server-to-sync-time-with-external-ntp-server/#respond</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Tue, 22 Mar 2016 00:38:55 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[NTP]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://www.kjctech.net/?p=2886</guid>

					<description><![CDATA[<p>If you got this message regarding your AD server that has PDC emulator role doesn&#8217;t have a proper NtpClient set up, like below: Here is how you can get this sorted out: Log on to the AD server (with PDC role) with administrator account and open elevated command prompt, and run the following commands: net stop w32time w32tm /config /manualpeerlist:"0.uk.pool.ntp.org,0x1 [&#8230;]</p>
The post <a href="https://www.kjctech.net/configuring-ad-server-to-sync-time-with-external-ntp-server/">Configuring AD Server to Sync Time with External NTP Server</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>If you got this message regarding your AD server that has PDC emulator role doesn&#8217;t have a proper NtpClient set up, like below:</p>
<p><a href="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/03/Event-Viewer-Time-Services.png" rel="attachment wp-att-2887" data-rel="lightbox-image-0" data-rl_title="" data-rl_caption="" title=""><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-large wp-image-2887" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/03/Event-Viewer-Time-Services-600x416.png?resize=600%2C416" alt="Event Viewer - Time Services" width="600" height="416" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/03/Event-Viewer-Time-Services.png?resize=600%2C416&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/03/Event-Viewer-Time-Services.png?resize=250%2C173&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/03/Event-Viewer-Time-Services.png?resize=450%2C312&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/03/Event-Viewer-Time-Services.png?resize=332%2C230&amp;ssl=1 332w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/03/Event-Viewer-Time-Services.png?w=640&amp;ssl=1 640w" sizes="auto, (max-width: 600px) 100vw, 600px" /></a></p>
<p>Here is how you can get this sorted out:</p>
<p>Log on to the AD server (with PDC role) with administrator account and open elevated command prompt, and run the following commands:</p>
<pre class="">net stop w32time
w32tm /config /manualpeerlist:"0.uk.pool.ntp.org,0x1 1.uk.pool.ntp.org,0x1 2.uk.pool.ntp.org,0x1 3.uk.pool.ntp.org,0x1"
w32tm /config /reliable:yes
net start w32time</pre>
<p>If all went well, running w32tm /resync should get a successful message.</p>
<p><a href="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/03/w32tm-resync.png" rel="attachment wp-att-2888" data-rel="lightbox-image-1" data-rl_title="" data-rl_caption="" title=""><img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-large wp-image-2888" src="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/03/w32tm-resync-600x304.png?resize=600%2C304" alt="w32tm resync" width="600" height="304" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/03/w32tm-resync.png?resize=600%2C304&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/03/w32tm-resync.png?resize=250%2C127&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/03/w32tm-resync.png?resize=450%2C228&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/03/w32tm-resync.png?resize=332%2C168&amp;ssl=1 332w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/03/w32tm-resync.png?w=677&amp;ssl=1 677w" sizes="auto, (max-width: 600px) 100vw, 600px" /></a></p>
<p>If not, go to Event Viewer to find out more details why it failed.</p>
<p>To force all domain computers to sync the time with the DC you just set up, run the following commands in the elevated command prompt window.</p>
<pre class="">net stop w32time
w32tm /config /syncfromflags:domhier /update
net start w32time</pre>
<p>That&#8217;s probably all you need to get your AD server to act as the NTP server in your domain.</p>
<p>Here are a few more useful <strong>w32tm</strong> commands that come handy:</p>
<p><strong>w32tm /query /configuration</strong> &#8211; check NTP configuration</p>
<p><strong>w32tm /query /source</strong> &#8211; display time source</p>
<p><strong>w32tm /query /peers</strong> &#8211; display the list of all configured NTP servers and their status</p>
<p><strong>w32tm /query /status</strong> &#8211; display time service status</p>The post <a href="https://www.kjctech.net/configuring-ad-server-to-sync-time-with-external-ntp-server/">Configuring AD Server to Sync Time with External NTP Server</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/configuring-ad-server-to-sync-time-with-external-ntp-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2886</post-id>	</item>
	</channel>
</rss>
