{"id":187,"date":"2015-01-20T15:01:02","date_gmt":"2015-01-20T15:01:02","guid":{"rendered":"http:\/\/www.busted.dk\/blog\/?p=187"},"modified":"2025-03-11T13:29:13","modified_gmt":"2025-03-11T11:29:13","slug":"configuring-ntp-server-2012-r2","status":"publish","type":"post","link":"https:\/\/www.busted.dk\/blog\/configuring-ntp-server-2012-r2\/","title":{"rendered":"Configuring NTP on Server 2012 R2"},"content":{"rendered":"<p>This is the command to use if you want your Server 2012 R2 to synchronize its time against a time server:<\/p>\n<p><strong>w32tm \/config \/manualpeerlist:pool.ntp.org,0x8 \/syncfromflags:MANUAL<\/strong><br \/>\n<strong>net stop w32time<\/strong><br \/>\n<strong>net start w32time<\/strong><\/p>\n<p>pool.ntp.org is good to use because it is a round-robin of random selected NTP servers.<strong><br \/>\n<\/strong><\/p>\n<p>If your server is a VM inside a Hyper-V, remember to disable time sync on the virtual mashine in Hyper-V manager.<\/p>\n<p>Other useful commands:<\/p>\n<p><strong>w32tm \/query \/configuration<\/strong> gives you the configuration<br \/>\n<strong>w32tm \/query \/status<\/strong> gives you information<br \/>\n<strong>w32tm \/resync<\/strong> Use it on a client to force a resync of the time<\/p>\n<p>If you want to start from scratch you can reset everything by running this command:<\/p>\n<p><strong>net stop w32time<\/strong><br \/>\n<strong>w32tm \/unregister<\/strong><br \/>\n<strong>w32tm \/register<\/strong><\/p>\n<p>Remember to create a rule in your firewall that allows udp\/123. That is the NTP protocol.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the command to use if you want your Server 2012 R2 to synchronize its time against a time server: w32tm \/config \/manualpeerlist:pool.ntp.org,0x8 \/syncfromflags:MANUAL net stop w32time net start w32time pool.ntp.org is good to use because it is a round-robin of random selected NTP servers. If your server is a VM inside a Hyper-V, &#8230; <a title=\"Configuring NTP on Server 2012 R2\" class=\"read-more\" href=\"https:\/\/www.busted.dk\/blog\/configuring-ntp-server-2012-r2\/\" aria-label=\"Read more about Configuring NTP on Server 2012 R2\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-187","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Configuring NTP on Server 2012 R2 - Peter Busted<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.busted.dk\/blog\/configuring-ntp-server-2012-r2\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Peter\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/configuring-ntp-server-2012-r2\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/configuring-ntp-server-2012-r2\\\/\"},\"author\":{\"name\":\"Peter\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#\\\/schema\\\/person\\\/6f1b95dddb508da8b018577701c33c9d\"},\"headline\":\"Configuring NTP on Server 2012 R2\",\"datePublished\":\"2015-01-20T15:01:02+00:00\",\"dateModified\":\"2025-03-11T11:29:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/configuring-ntp-server-2012-r2\\\/\"},\"wordCount\":155,\"publisher\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#\\\/schema\\\/person\\\/6f1b95dddb508da8b018577701c33c9d\"},\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/configuring-ntp-server-2012-r2\\\/\",\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/configuring-ntp-server-2012-r2\\\/\",\"name\":\"Configuring NTP on Server 2012 R2 - Peter Busted\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#website\"},\"datePublished\":\"2015-01-20T15:01:02+00:00\",\"dateModified\":\"2025-03-11T11:29:13+00:00\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.busted.dk\\\/blog\\\/configuring-ntp-server-2012-r2\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/\",\"name\":\"Peter Busted\",\"description\":\"A blog about my daily work with tech and more, running since 2008\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#\\\/schema\\\/person\\\/6f1b95dddb508da8b018577701c33c9d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#\\\/schema\\\/person\\\/6f1b95dddb508da8b018577701c33c9d\",\"name\":\"Peter\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp\",\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp\",\"contentUrl\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp\",\"width\":1790,\"height\":357,\"caption\":\"Peter\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp\"},\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/author\\\/peter\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Configuring NTP on Server 2012 R2 - Peter Busted","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.busted.dk\/blog\/configuring-ntp-server-2012-r2\/","twitter_misc":{"Written by":"Peter","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.busted.dk\/blog\/configuring-ntp-server-2012-r2\/#article","isPartOf":{"@id":"https:\/\/www.busted.dk\/blog\/configuring-ntp-server-2012-r2\/"},"author":{"name":"Peter","@id":"https:\/\/www.busted.dk\/blog\/#\/schema\/person\/6f1b95dddb508da8b018577701c33c9d"},"headline":"Configuring NTP on Server 2012 R2","datePublished":"2015-01-20T15:01:02+00:00","dateModified":"2025-03-11T11:29:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.busted.dk\/blog\/configuring-ntp-server-2012-r2\/"},"wordCount":155,"publisher":{"@id":"https:\/\/www.busted.dk\/blog\/#\/schema\/person\/6f1b95dddb508da8b018577701c33c9d"},"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.busted.dk\/blog\/configuring-ntp-server-2012-r2\/","url":"https:\/\/www.busted.dk\/blog\/configuring-ntp-server-2012-r2\/","name":"Configuring NTP on Server 2012 R2 - Peter Busted","isPartOf":{"@id":"https:\/\/www.busted.dk\/blog\/#website"},"datePublished":"2015-01-20T15:01:02+00:00","dateModified":"2025-03-11T11:29:13+00:00","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.busted.dk\/blog\/configuring-ntp-server-2012-r2\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.busted.dk\/blog\/#website","url":"https:\/\/www.busted.dk\/blog\/","name":"Peter Busted","description":"A blog about my daily work with tech and more, running since 2008","publisher":{"@id":"https:\/\/www.busted.dk\/blog\/#\/schema\/person\/6f1b95dddb508da8b018577701c33c9d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.busted.dk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.busted.dk\/blog\/#\/schema\/person\/6f1b95dddb508da8b018577701c33c9d","name":"Peter","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/03\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp","url":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/03\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp","contentUrl":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/03\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp","width":1790,"height":357,"caption":"Peter"},"logo":{"@id":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/03\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp"},"url":"https:\/\/www.busted.dk\/blog\/author\/peter\/"}]}},"_links":{"self":[{"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/posts\/187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/comments?post=187"}],"version-history":[{"count":2,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/posts\/187\/revisions"}],"predecessor-version":[{"id":189,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/posts\/187\/revisions\/189"}],"wp:attachment":[{"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/media?parent=187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/categories?post=187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/tags?post=187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}