<?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>w32tm | KC's Blog</title>
	<atom:link href="https://www.kjctech.net/tag/w32tm/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.kjctech.net</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2023 18:20:55 +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>w32tm | 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>
	</channel>
</rss>
