none
RECOVER DELETED OBJECT

    Question

  • HI,

    HOW CAN I RECOVER DELETED OBJECT IN AD USING POWERSHELL without Recyle Bin because my forest functional level is windows server 2003. SO i can user Recycle Bin..

    i know i can recover from LDP and Authoritative restore but i want to use powershell command....

    Eg..

    OU name=ABC  >>> and 100 Users in ABC OU

    if ABC OU deleted Accidently how can i recover it.... i have tried From LDP but we need to recover every single object in LDP...

    Anybody know how can i recover ABC OU in SIngle Time.... and Recover All Users....

    THanks

    Wednesday, September 09, 2015 8:57 AM

Answers

  • >>without Recyle Bin because my forest functional level is windows server 2003
     
    In past versions of Windows Server, without Active Directory Recycle Bin, you will have to use authoritative restore command to mark objects as authoritative to restore it. It had to be performed in Directory Services Restore Mode (DSRM). So we are not able to do it using powershell like what you do with Active Directory Recycle Bin enabled.
     
    >>Anybody know how can i recover ABC OU in SIngle Time.... and Recover All Users....
     
    Actually, with authoritative restore, you can choose to restore a "subtree" instead of "individual object" (for example, an organizational), which will also restore all child objects:
     
    https://technet.microsoft.com/en-us/library/cc757068
     
    Hope this helps.
     

    Regards,

    Ethan Hua


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com

    Thursday, September 10, 2015 5:27 AM
    Moderator

All replies

  • If you have the Recycle bin enabled you should be able to use the Restore-ADTree.ps1 script. Look it up in Technet Script Center.

    .\Restore-ADTree.ps1 -LastKnownRDN ABC -Verbose

    

    yaro

    Wednesday, September 09, 2015 9:35 AM
  • HI, 

    I have mentioned our domain forest functional level 2008 r2. so i can not enable Recycle Bin.

    I want to recove from powershell command with Group Memebership.

    THnaks

    Wednesday, September 09, 2015 9:58 AM
  • >>without Recyle Bin because my forest functional level is windows server 2003
     
    In past versions of Windows Server, without Active Directory Recycle Bin, you will have to use authoritative restore command to mark objects as authoritative to restore it. It had to be performed in Directory Services Restore Mode (DSRM). So we are not able to do it using powershell like what you do with Active Directory Recycle Bin enabled.
     
    >>Anybody know how can i recover ABC OU in SIngle Time.... and Recover All Users....
     
    Actually, with authoritative restore, you can choose to restore a "subtree" instead of "individual object" (for example, an organizational), which will also restore all child objects:
     
    https://technet.microsoft.com/en-us/library/cc757068
     
    Hope this helps.
     

    Regards,

    Ethan Hua


    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com

    Thursday, September 10, 2015 5:27 AM
    Moderator