How to clear the conflict and deleted folder in DFS

Intro

Sometimes, in a Windows Server DFS environment, the conflict and deleted folder grows unexpectedly. When it happens we can also see that the ConflictAndDeletedManifest.xml file is corrupted and that his size begins to take some megabytes.

We can clear it in two commands line. Let's see how.

Commands

 C:\Users\Administrator> WMIC.EXE /namespace:\\root\microsoftdfs path dfsrreplicatedfolderconfig get replicatedfolderguid,replicatedfoldername
 C:\Users\Administrator> WMIC.EXE /namespace:\\root\microsoftdfs path dfsrreplicatedfolderinfo where "replicatedfolderguid='<RF GUID>'" call cleanupconflictdirectory

That's it. It will take some times, but you will see the conflict and deleted folder size slowly decrease. In the end, the ConflictAndDeletedManifest.xml file will be recreated.

Source

Licence Creative Commons
This website http://shebangthedolphins.net is licensed to the public under a licence Creative Commons Attribution licence.
Contact :