Active Directory: Restoring Deleted objects using LDP.exe without Backup Software
In a previous article we were discussing Accessing Active Directory Information using ldp.exe.
Today, let’s talk about Restoring the Deleted Object using ldp.exe
Here's user “Test9” and it got deleted.
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP1-300x209.png
Let's restore or recover it using ldp.exe
As discussed in the last post, launch ldp.exe
This tool can be run from either “Run Window or from the Command Prompt”.
From Run Window.
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP2-300x155.png
OR
From Command Prompt
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP3-300x60.png
New Window will Popup as shown below:
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP4-300x264.png
Click on Connections Tab -> Click Connect.
http://www.techrid.com/wp-content/uploads/2015/02/ldp4-300x127.png
Specifying the server you want to connect
http://www.techrid.com/wp-content/uploads/2015/02/ldp5-300x130.png
Press OK.
Now go back to Connections Tab -> click Bind as shown below:
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP5-300x129.png
Select either option 1 “Bind as currently logged on user” or option 2 “Bind with Credentials”.
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP6-300x119.png
Press OK.
User got Authenticated as shown below:
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP7-300x155.png
Select the Tab “Options” in the Menu bar and Select “Controls”.
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP8-300x94.png
New popup window opened as shown below:
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP9-300x251.png
Under the Active Controls -> Select the Load Predefined -> and Select “Return Deleted Objects”.
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP10-238x300.png
You will get the Guid ID under Active Controls for the Deleted Object.
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP11-300x256.png
Click OK
In the Menu Bar select View and select Tree.
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP12-300x86.png
In the Base DN select Domain Partition.
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP13-300x90.png
Click OK.
Expand the Root Tab and select Deleted Object -> right-click and select Modify.
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP14.png
Right-click on the Deleted User and click Modify as shown below:
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP15-300x107.png
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP16.png
New Window will appear as shown below:
Here in the Edit Entry Attribute type IsDeleted -> Enter
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP17-255x300.png
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 the check mark on Extended as shown.
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP18-300x150.png
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.
http://www.techrid.com/wp-content/uploads/2015/02/ADLDP19-300x241.png
But it will be in Disabled state.
Go ahead and enable the Object.
From this you have learned Restoring the Deleted Object using ldp.exe.