MSDN Archive Home
Help and FAQs
RestoreDFSR (recover conflicted or preexisting files)
All Resource Updates
Change History (all pages)
Resource Page Description
A simple vbscript to allow recovery of DFS Replicated files that have been pushed into the ConflictAndDeleted or PreExisting folders due to misadventure.
Remember, this script must be run from a CMD prompt using cscript.exe. Don't just double-click it.
The script also requires to edit three paths (your source files, a new destination path, and the XML manifest you are calling). If you fail to edit those the script will exit with an error:
' Section must be operator-edited to provide valid paths
' Change path to specify location of XML Manifest
' Example 1: "C:\Data\DfsrPrivate\ConflictAndDeletedManifest.xml"
' Example 2: "C:\Data\DfsrPrivate\preexistingManifest.xml"
' Change path to specify location of source files
' Example 1: "C:\data\DfsrPrivate\ConflictAndDeleted"
' Example 2: "C:\data\DfsrPrivate\preexisting"
SourceFolder = ("C:\your_replicated_folder\DfsrPrivate\ConflictAndDeleted")
' Change path to specify output folder
OutputFolder = ("c:\your_dfsr_repair_tree")
Oct 15 2010 at 5:29 PM
, version 2
Jan 24 2012 at 1:53 PM
I'd like to mention that the script works fine. But even better if you keep your OS language in mind. As it comes to this moment where you echo in the answer to xcopy's question for file or directory. And the english script of course answers F for file and D for directory. In the german version of Windows it is more suitable to answer D for Datei and V for Verzeichnis. And this might be likewise in other languages.
Nov 9 2012 at 3:43 PM
Life Saver. Thank you!
Feb 25 2013 at 7:14 PM
Just wanted to say that this script is incredible -- saved a massive amount of time renaming and restructuring the file tree that DFS moved.
Thank you so much for putting this here -- it saved the day.
Oct 18 2013 at 1:00 PM
I'm so greatfull that i thank GOD to have created you and wish him bless you!! Thanks for this major help! I'm now able to restore entirely and accurately the files within ConflictAndDelete folders!!! Thank you guy!
Jan 11 at 4:49 PM
I'm hoping someone is still paying attention to this thread. I have 2 Storage Server 2012 machines that had their JET databases corrupted, and have many files in these folders due to the repair. Where this script was created before the release of Storage Server 2012, I was hoping someone could tell me if this should/would work. I imagine it will, but don't want to chance it on our production servers. Of course Microsoft included this functionality in R2 though...
Thanks in advance,
Sign in to add a comment
RestoreDFSR VBS and ZI...
Mon Oct 18 2010 at 7:00 AM
More Tags ...
Visual Studio 2005
Visual Studio 2008
Visual Studio 2010
Manage Your Profile
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.