{"id":5190,"date":"2021-07-08T00:52:12","date_gmt":"2021-07-08T00:52:12","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=5190"},"modified":"2021-07-08T00:52:12","modified_gmt":"2021-07-08T00:52:12","slug":"how-to-clear-old-tomstoned-files-from-dfs-for-resync","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/how-to-clear-old-tomstoned-files-from-dfs-for-resync","title":{"rendered":"How to clear old Tomstoned files from DFS for Resync"},"content":{"rendered":"<p>Navigate to the Drive you have your DFS replicated folder on in powershell<\/p><p>\u00a0CD D:\\<\/p><p>md d:\\emptyfolder<\/p><p>Robocopy.exe d:\\emptyfolder &#8220;D:\\System Volume Information\\dfsr\\Private&#8221; \/purge<\/p><p>rd d:\\emptyfolder<\/p><pre class=\"prettyprint prettyprinted\"><span class=\"typ\">Remove<\/span><span class=\"pun\">-<\/span><span class=\"typ\">Item<\/span>  <span class=\"pun\">-<\/span><span class=\"typ\">Path<\/span> <span class=\"pun\">.<\/span><span class=\"pln\">\\DFRS\\ <\/span><span class=\"pun\">-<\/span><span class=\"typ\">Recurse<\/span> <span class=\"pun\">-<\/span><span class=\"typ\">Force<\/span> <span class=\"pun\">-<\/span><span class=\"typ\">Verbose<\/span><\/pre><p>Check Replication status<\/p><p>Get-WmiObject -Namespace &#8220;root\\Microsoft\\Windows\\DFSR&#8221; -Class msft_dfsrreplicatedfolderinfo -ComputerName SERVERNAME| ft replicatedfoldername,state -auto -wrap<\/p>","protected":false},"excerpt":{"rendered":"<p>Navigate to the Drive you have your DFS replicated folder on in powershell\u00a0CD D:\\md d:\\emptyfolderRobocopy.exe d:\\emptyfolder &#8220;D:\\System Volume Information\\dfsr\\Private&#8221; \/purgerd d:\\emptyfolderRemove-Item -Path .\\DFRS\\ -Recurse -Force -VerboseCheck Replication [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3532],"class_list":["post-5190","post","type-post","status-publish","format-standard","hentry","category-research","tag-how-to-clear-old-tomstoned-files-from-dfs-for-resync"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=5190"}],"version-history":[{"count":3,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5190\/revisions"}],"predecessor-version":[{"id":5194,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5190\/revisions\/5194"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=5190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=5190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=5190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}