{"id":796,"date":"2017-06-08T07:10:00","date_gmt":"2017-06-08T05:10:00","guid":{"rendered":"https:\/\/www.em-soft.si\/myblog\/elvis\/?p=796"},"modified":"2017-06-08T07:10:00","modified_gmt":"2017-06-08T05:10:00","slug":"dfs-still-not-replicating-sysvol","status":"publish","type":"post","link":"https:\/\/em-soft.si\/myblog\/elvis\/?p=796","title":{"rendered":"DFS still not replicating Sysvol"},"content":{"rendered":"<p>In addition to my <a href=\"https:\/\/em-soft.si\/myblog\/elvis\/?p=500\">previous post <\/a>on reestablishing synchronization of SYSVOL folders between DCs, I received some comments that going true steps in the posts is not possible to reestablish sync. After this I diagnosed some situations when friends allowed me to connect and there was always a similar situation: DFS replication stops to work after dirty shutdown (event 2212 and 2213) and nobody saw it for a long time \u2013 more than 60 days. This will cause an Error 4012 where you can see that the server was \u201cdisconnected\u201d for a time, which is longer than the time allowed by the MaxOfflineTimeInDays parameter (60 days by default).<br \/>\nTo verify how long are DCs not synced, use this command line (execute from elevated command prompt):<\/p>\n<p><span style=\"color: #ff0000; font-family: courier new,courier,monospace;\">For \/f %i IN (&#8216;dsquery server -o rdn&#8217;) do @echo %i &amp;&amp; @wmic \/node:&#8221;%i&#8221; \/namespace:\\\\root\\microsoftdfs path DfsrMachineConfig get MaxOfflineTimeInDays<\/span><\/p>\n<p>If the result is more than 60 days, you have to extend MaxOfflineTimeInDays parameter on all servers where you have DFS replication in error (State = 5) and where MaxOfflineTimeInDays parameter is greater than 60. Use this command line on any DCs that are in error:<\/p>\n<p><span style=\"color: #ff0000; font-family: courier new,courier,monospace;\">wmic \/namespace:\\\\root\\microsoftdfs path DfsrMachineConfig set MaxOfflineTimeInDays=365<\/span><\/p>\n<p>Of course you can replace the number 365 with any number you want, but it has to be greater than the displayed MaxOfflineTimeInDays value.<br \/>\nWait for few minutes and resume replication as is described in the previous post. It should work.<br \/>\nI suggest also to put back the value MaxOfflineTimeInDays parameter to previous value:<\/p>\n<p><span style=\"color: #ff0000; font-family: courier new,courier,monospace;\">wmic \/namespace:\\\\root\\microsoftdfs path DfsrMachineConfig set MaxOfflineTimeInDays=60<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In addition to my previous post on reestablishing synchronization of SYSVOL folders between DCs, I received some comments that going true steps in the posts is not possible to reestablish sync. After this I diagnosed some situations when friends allowed me to connect and there was always a similar situation: DFS replication stops to work [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[40],"class_list":["post-796","post","type-post","status-publish","format-standard","hentry","category-windows-server","tag-windows-server"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/796","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=796"}],"version-history":[{"count":1,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/796\/revisions"}],"predecessor-version":[{"id":797,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/796\/revisions\/797"}],"wp:attachment":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}