In the previous blog we were discussing about Accessing Active Directory Information using ldp.exe.
Today let’s talk about Restoring the Deleted Object using ldp.exe
I have user “Test9” and it got deleted.
So now I would like to restore or recover it using ldp.exe
As discussed in the last post, launch ldp.exe
This tool can be run either “Run Window or from the Command Prompt”
From Run Window
From Command Prompt
New Window will Popup as shown below:
Click on Connections Tab -> Click Connect
Specifying the Server you want to connect
Now go back to Connections Tab -> click Bind as shown below:
Select either option 1 “Bind as currently logged on user” or option 2 “Bind with Credentials”.
User got Authenticated as shown below:
Select the Tab “Options” in the Menu bar and Select “Controls”
New popup window opened as shown below:
Under the Active Controls -> Select the Load Predefined -> And Select “Return Deleted Objects”
You will get the Guid ID under Active Controls for the Deleted Object
In the Menu Bar Select View and Select Tree
In the Base DN select Domain Partition
Expand the Root Tab and Select Deleted Object -> Right Click and Click Modify
Right Click on the Deleted User and Click Modify as shown below:
New Window will appear as shown below:
Here in the Edit Entry Attribute TYPE IsDeleted -> Enter
Then again Type distinguishedName in Edit Entry Attribute, and Provide the details of the Deleted Object
Example: CN=Test9,CN=User,DC=DC1,DC=COM ( These values are provided according to my scenario)
Click Replace and Press Enter
Before Running this Modification, you need to keep check mark on Extended as shown.
Now Press Run
Beside the Modify Box you can see the Modification details as shown in the above figure
Go back to Active Directory Users and Computers and you will be able to view the Deleted User Object.
But it will be in Disabled state.
Go ahead and Enable the Object.
Great from this you have learned Restoring the Deleted Object Using ldp.exe.
MCSA, MCSE | Windows Server 2012
Publisher @ Techrid.com