{"id":4116,"date":"2013-09-07T20:51:28","date_gmt":"2013-09-08T04:51:28","guid":{"rendered":"https:\/\/www.zubairalexander.com\/stage\/?p=4116"},"modified":"2013-09-08T14:12:47","modified_gmt":"2013-09-08T22:12:47","slug":"how-to-configure-your-windows-server-to-use-an-external-time-source","status":"publish","type":"post","link":"https:\/\/www.zubairalexander.com\/blog\/how-to-configure-your-windows-server-to-use-an-external-time-source\/","title":{"rendered":"How to Configure Your Windows Server to Use an External Time Source"},"content":{"rendered":"<p>Having the same time on all your Windows servers is extremely important. Microsoft Exchange, SQL Server, and Active Directory all rely on the Time Service (W32Time). The Kerberos authentication protocol in Windows also relies on the Time Service and if the time is out of sync on the servers, you can have some serious issues.<\/p>\n<p>By default, the Windows computers use the following hierarchy to synchronize time with the servers.<\/p>\n<ol>\n<li>All client desktop computers synchronize time with the authenticating domain controller.<\/li>\n<li> All member servers also synchronize time with the authenticating domain controller.<\/li>\n<li> All domain controllers in a domain synchronize time with the primary domain controller (PDC) operations master.<\/li>\n<li> All PDC operations masters in each domain synchronize time with the PDC operations master in the forest root domain.<\/li>\n<\/ol>\n<p>Microsoft recommends that you configure the authoritative time server to obtain the time from a hardware source because when you configure the authoritative time server to sync with an Internet time source there is no authentication. However, there are pros and cons to both using a hardware source and an Internet time source. Organizations often choose to synchronize time with an Internet time source because it is free and convenient. Here&#8217;s how you can configure a Windows Server to use an external time source on the Internet.<\/p>\n<p><strong>Step 1 &#8211;\u00a0 Change the Server Type to NTP<\/strong><\/p>\n<ol>\n<li>Start Registry Editor and go to the following location:<br \/>\nHKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\Parameters\\Type<\/li>\n<li>Double-click Type and change the value to <strong>NTP<\/strong>.<\/li>\n<li>Click OK.<\/li>\n<\/ol>\n<p><strong>Step 2 &#8211; Enable NTP Server<\/strong><\/p>\n<ol>\n<li>Locate the following location in the registry:<br \/>\nHKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\NtpServer<\/li>\n<li>Double-click Enabled, type <strong>1<\/strong> and click OK.<\/li>\n<\/ol>\n<p><strong>Step 3 -Specify the Time Sources<\/strong><\/p>\n<ol>\n<li>Go to the following location in the registry:<br \/>\nHKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\Parameters<\/li>\n<li>Double-click NtpServer and enter the following:<br \/>\n<strong>us.pool.ntp.org,0\u00d71<\/strong><br \/>\nYou can list more than one time sources here. Use spaces to separate them. The important thing to remember is to add <strong>,0x1<\/strong> at the end of each DNS name. For more information check out Microsoft&#8217;s KB article <a href=\"http:\/\/support.microsoft.com\/kb\/262680\">262680: A list of the Simple Network Time Protocol (SNTP) time servers that are available on the Internet.<\/a><\/li>\n<li>Click OK.<br \/>\n<a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/09\/NtpServer.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-4118\" title=\"NtpServer\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/09\/NtpServer-300x96.png\" alt=\"\" width=\"300\" height=\"96\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/09\/NtpServer-300x96.png 300w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/09\/NtpServer-768x246.png 768w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/09\/NtpServer.png 811w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<\/ol>\n<p><strong>Step 4- Configure the Time Correction Settings<\/strong><\/p>\n<ol>\n<li>Go to the following location in the registry:<br \/>\nHKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\Config\\MaxPosPhaseCorrection<\/li>\n<li>Double-click <strong class=\"uiterm\">MaxPosPhaseCorrection<\/strong><span class=\"uiterm\"> and enter a decimal value in seconds. For example, for 30 minutes type 1800, for one hour type 3600 and then click OK.<\/span><\/li>\n<li><span class=\"uiterm\">Go to the following key in the registry:<br \/>\nHKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\Config\\MaxNegPhaseCorrection<\/span><\/li>\n<li><span class=\"uiterm\">Double-click MaxNegPhaseCorrection<\/span> <span class=\"uiterm\">and enter a decimal value in seconds. For example, for 30 minutes type 1800, for one hour type 3600 and then click OK.<\/span><\/li>\n<\/ol>\n<p><strong>Step 5 -Modify the Poll Interval<\/strong><\/p>\n<ol>\n<li>Go to the following location in the registry:<br \/>\nHKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\W32Time\\TimeProviders\\NtpClient\\SpecialPollInterval<\/li>\n<li>Double-click SpecialPollInterval and change the value to 900 and then click OK. This value sets the time in seconds so by setting it to 900 you are configuring the time server to poll every 15 minutes.<\/li>\n<\/ol>\n<p><strong>Step 6 &#8211; Restart Windows Time Service<\/strong><\/p>\n<ol>\n<li>Go to the command prompt and type the following command.<br \/>\n<span class=\"userInput\">net stop w32time &amp;&amp; net start w32time<\/span><\/li>\n<\/ol>\n<p>You just configured your server to automatically synchronize time with an Internet source. If you ever want to manually synchronize the time just type <strong>W32tm \/resync<\/strong> at the command prompt.<\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/09\/resync.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4120\" title=\"resync\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/09\/resync.png\" alt=\"\" width=\"406\" height=\"87\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/09\/resync.png 406w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/09\/resync-300x64.png 300w\" sizes=\"(max-width: 406px) 100vw, 406px\" \/><\/a><\/p>\n<div id=\"_mcePaste\" style=\"position: absolute; left: -10000px; top: 316px; width: 1px; height: 1px; overflow: hidden;\">\ufeff<\/div>\n<p>I have tested this procedure successfully on Windows Server 2012 Datacenter, Windows Server 2008 R2 Enterprise and Windows Server 2003 R2 Enterprise. For more information and to configure the Windows time service to use an internal hardware clock, check out this <a href=\"http:\/\/support.microsoft.com\/kb\/816042\/en-us\">KB article<\/a>.<\/p>\n<hr \/>\n<p><span style=\"font-size: xx-small; font-family: Verdana;\">Copyright \u00a92013 Zubair Alexander. All rights reserved.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Having the same time on all your Windows servers is extremely important. Microsoft Exchange, SQL Server, and Active Directory all rely on the Time Service (W32Time). The Kerberos authentication protocol in Windows also relies on the Time Service and if the time is out of sync on the servers, you can have some serious issues. [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[43,44,34,11,38,30,65],"tags":[],"class_list":["post-4116","post","type-post","status-publish","format-standard","hentry","category-articles","category-internetweb","category-registry","category-tips-tricks","category-windows-2003","category-longhorn-server","category-windows-2012"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/4116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/comments?post=4116"}],"version-history":[{"count":0,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/4116\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media?parent=4116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/categories?post=4116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/tags?post=4116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}