Tool to restore ConflictAndDeleted files.

Discussion in 'File Systems' started by Bob, Apr 14, 2007.

  1. Bob

    Bob Guest

    Hi,

    I'm looking for a tool that'll read the ConflictAndDeletedManifest.xml to
    restore the files found in the DfsrPrivate\ConflictAndDeleted folder.

    Is there such a thing?
     
    Bob, Apr 14, 2007
    #1
    1. Advertisements

  2. I know Ned Pyle has posted this here before. My Windows Mail history only
    goes back to January and I don't see the post. If you're using a web
    browser, you might be able to go back further.
     
    Jill Zoeller [MSFT], Apr 16, 2007
    #2
    1. Advertisements

  3. Yep, attached. Rename to .VBS.

    ===

    Disaster Recovery script for pulling DFSR data out of ConflictAndDeleted and
    putting it back into a usable directory tree, preserving paths names, and
    security descriptor info.

    Please examine VBS closely before running.
    Requires that the following variables be edited by operator:

    objXMLDoc.load("C:\replicatedfolder\DfsrPrivate\ConflictAndDeletedManifest.xml")

    CandDFolder = ("C:\replicatedfolder\DfsrPrivate\ConflictAndDeleted\")

    OutputFolder = ("c:\dfsr_repair_tree")

    To execute, run cscript restoreconflicted.vbs

    This script has almost no error control currently.
    USE AT YOUR OWN RISK UNDER DIRE CIRCUMSTANCES ONLY!

    ===
    --

    Ned Pyle
    Microsoft Enterprise Platform Support
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Please read http://www.microsoft.com/info/cpyright.htm for more information.
     
    Ned Pyle [MSFT], Apr 16, 2007
    #3
  4. Bob

    Bob Guest

    Thanks Ned,

    Not knowing the first thing about vbs script, I have entered the following
    and ran it. The result is:

    J:\>cscript restoreconflicted.vbs
    Microsoft (R) Windows Script Host Version 5.6
    Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

    J:\restoreconflicted.vbs(1, 1) Microsoft VBScript runtime error: Object
    required
    : 'objXMLDoc'

    -------------------------
    Below is my script:
    ===
    objXMLDoc.load("J:\Profiles DFSR\DfsrPrivate\ConflictAndDeletedManifest.xml")

    CandDFolder = ("J:\Profiles DFSR\DfsrPrivate\ConflictAndDeleted\")

    OutputFolder = ("J:\dfsr_repair_tree")
    ===

    Any idea where my error is? Thanks!
     
    Bob, Apr 17, 2007
    #4
  5. Can you attach or paste your script here? It's acting like this has been
    done:

    ' Startup XML
    'Set objXMLDoc = CreateObject("Microsoft.XMLDOM")
    'objXMLDoc.async = False

    when it should instead look like:

    ' Startup XML
    Set objXMLDoc = CreateObject("Microsoft.XMLDOM")
    objXMLDoc.async = False

    --

    Ned Pyle
    Microsoft Enterprise Platform Support
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Please read http://www.microsoft.com/info/cpyright.htm for more information.
     
    Ned Pyle [MSFT], Apr 17, 2007
    #5
  6. Bob

    Bob Guest

    Below is my script:
    ===
    objXMLDoc.load("J:\Profiles DFSR\DfsrPrivate\ConflictAndDeletedManifest.xml")

    CandDFolder = ("J:\Profiles DFSR\DfsrPrivate\ConflictAndDeleted\")

    OutputFolder = ("J:\dfsr_repair_tree")
    ===
     
    Bob, Apr 17, 2007
    #6
  7. And I assume all the above exist.

    Can you attach or paste the entire script? There's some preamble I'd like to
    see as well.

    --

    Ned Pyle
    Microsoft Enterprise Platform Support
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Please read http://www.microsoft.com/info/cpyright.htm for more information.
     
    Ned Pyle [MSFT], Apr 18, 2007
    #7
  8. Bob

    Bob Guest

    That is the entire script.

    Your original posting on 04/16 had lots of instructional text. After
    removing all the text, only 5 lines of script remained. (three lines of code
    and two blank lines).
    Below is what I gleaned out of your 04/16 post.
    ==
    objXMLDoc.load("C:\replicatedfolder\DfsrPrivate\ConflictAndDeletedManifest.xml")

    CandDFolder = ("C:\replicatedfolder\DfsrPrivate\ConflictAndDeleted\")

    OutputFolder = ("c:\dfsr_repair_tree")
    ===


    So, my 5 lines of script are modifications of yours as follows:
    ===
    objXMLDoc.load("J:\Profiles DFSR\DfsrPrivate\ConflictAndDeletedManifest.xml")

    CandDFolder = ("J:\Profiles DFSR\DfsrPrivate\ConflictAndDeleted\")

    OutputFolder = ("J:\dfsr_repair_tree")
    ===

    If I understand the error message, it seems to be pointing at the first
    character of the first line.

    ERROR MESSAGE
     
    Bob, Apr 19, 2007
    #8
  9. So you just pasted from the posting, I think. There was an attachment in the
    original reply with the entire script - you are just running the part that
    needs to be modified.

    --

    Ned Pyle
    Microsoft Enterprise Platform Support
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Please read http://www.microsoft.com/info/cpyright.htm for more information.
     
    Ned Pyle [MSFT], Apr 19, 2007
    #9
  10. Bob

    Bob Guest

    Yes, the script did seem a bit sparse, but I figured you really write tight
    code :)

    You're writing about an attachment. I'm using IE to browse this forum. I
    don't believe the attachment is available via IE, is it?

    Is the entire script something I can download from somewhere or get via email?

    I presume it is too long to paste to the forum.
     
    Bob, Apr 19, 2007
    #10
  11. :-D

    I can send through email. Just send me a note at
    nedpyle<REMOVE>@microsoft.com and I'll reply with it. Sorry for all the
    confusion here, I always forget people use web browsers in this newsgroup.
    Vista Windows Mail client FTW! ;-)

    --

    Ned Pyle
    Microsoft Enterprise Platform Support
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Please read http://www.microsoft.com/info/cpyright.htm for more information.
     
    Ned Pyle [MSFT], Apr 19, 2007
    #11
  12. Bob

    Bob Guest

    Hi Ned,

    At first use of your script, a gui pops up to "OK" each copy. Is this by
    design or is there a why I can get it to just copy everything over (except
    the dups)?
     
    Bob, May 1, 2007
    #12
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.