{"id":57,"date":"2012-05-16T15:52:00","date_gmt":"2012-05-16T15:52:00","guid":{"rendered":"\/myblog\/elvis\/post\/2012\/05\/16\/Enabling-NTP-service-on-Windows-Server-2008-2008R2.aspx"},"modified":"2017-12-13T11:28:12","modified_gmt":"2017-12-13T10:28:12","slug":"enabling-ntp-service-on-windows-server-2008-2008r2","status":"publish","type":"post","link":"https:\/\/em-soft.si\/myblog\/elvis\/?p=57","title":{"rendered":"Enabling NTP service on Windows Server 2008 \/ 2008R2"},"content":{"rendered":"<p><span style=\"font-family: times new roman,times; font-size: medium;\">Setting time server on Windows Server 2008 or 2008 R2 appears to be still difficult for some administrators. For this reason I have decided to write on my blog how to set it from command prompt. It exists also a version to modify the same settings from registry, but I prefer other ways.<br \/>\nIf you want to set time services, the command prompt must be opened as administrator. There you must write some commands:<\/span><\/p>\n<ul>\n<li><span style=\"font-family: times new roman,times; font-size: medium;\"><em><strong>w32tm \/config \/manualpeerlist:ntp1.arnes.si \/syncfromflags:MANUAL \/reliable:yes<\/strong><\/em> \u2013 this command will configure the NTP server to <em>ntp1.arnes.si<\/em> (of course you can use other servers) and set the synchronization. Switch <em>syncfromflags<\/em> has two options<em> MANUAL<\/em> if you synchronize from the manual peer list (in our case), or <em>DOMHIER<\/em> if you want to synchronize from the DC (this of course exclude manualpeerlist switch). Switch Reliable sets this computer as a reliable time service.<\/span><\/li>\n<li><span style=\"font-family: times new roman,times; font-size: medium;\"><em><strong>w32tm \/config \/update<\/strong><\/em> \u2013 of course you must update the configuration and this is done in this step.<\/span><\/li>\n<li><span style=\"font-family: times new roman,times; font-size: medium;\"><em><strong>net stop w32time<\/strong><\/em> and <em><strong>net start w32time<\/strong><\/em> \u2013 you must restart the time service for applying the use of the desired configuration.<\/span><\/li>\n<li><span style=\"font-family: times new roman,times; font-size: medium;\"><em><strong>w32tm \/resync \/rediscover<\/strong><\/em> \u2013 this step is an optional, but is very good for testing. The only thing we do here is forcing the synchronization. This is very nice to test if everything is OK.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: times new roman,times; font-size: medium;\">This are commands to set NTP time server, but don\u2019t forget that the NTP server must be reachable from your computer. There are a lot of errors in this step,so put a look to firewalls if the port <em><strong>UDP 123<\/strong><\/em> is open. The list of NTP servers is <a href=\"http:\/\/support.ntp.org\/bin\/view\/Servers\/ServersSynchronizedByGPS?sortcol=1;table=1;up=0#sorted_table\" target=\"_blank\" rel=\"noopener\">here<\/a>. You will found one that is OK for you.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setting time server on Windows Server 2008 or 2008 R2 appears to be still difficult for some administrators. For this reason I have decided to write on my blog how to set it from command prompt. It exists also a version to modify the same settings from registry, but I prefer other ways. If you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,14,15],"tags":[24,40],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-management","category-windows-sbs-server","category-windows-server","tag-small-business-server","tag-windows-server"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=57"}],"version-history":[{"count":1,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":861,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions\/861"}],"wp:attachment":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}