Created
September 17, 2024 03:27
-
-
Save Bytexionl/d6bd43b815e9f6ac41e23254bfc0f507 to your computer and use it in GitHub Desktop.
How to Restore deleted AD User without AD Recycle Bin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Start Command Prompt as administrator | |
Type in ldp.exe and press Enter | |
Click Connection > Connect | |
Type in your domain controller (DC01.exoip.com) | |
Click OK | |
Click Connection > Bind | |
Select Bind as currently logged on user | |
Click OK | |
It successfully binds the currently logged on user | |
Click Option > Controls | |
Select Return recycled objects | |
Click OK | |
Click View > Tree | |
Select the BaseDN from the dropdown menu | |
Click OK | |
Expand your BaseDN (DC=exoip,DC=com) | |
Expand the Deleted Objects (CN=Deleted Objects,DC=exoip,DC=com) | |
Click the deleted user you want to restore (CN=Amanda Morgan) | |
Check the object user settings | |
Right-click the deleted user | |
Click Modify | |
Select Extended | |
Type isDeleted in Edit Entry Attribute | |
Select Delete under Operation | |
Click Enter | |
Get the deleted user distinguishedName and lastKnownParent and add these values together because you need them in the next step | |
****CN=Amanda Morgan,OU=IT,OU=Users,OU=Company,DC=exoip,DC=com**** | |
Type distinguishedName in Edit Entry Attribute | |
Paste the copied values from the previous step in Values | |
Select Replace under Operation | |
Click Enter | |
Check the Entry List and verify that both entry attributes (isDeleted and distinguishedName) are added | |
Click Run | |
Check that the deleted user is modified without any errors | |
Verify that the deleted user is restored in Active Directory. You need to reset the password and enable the account. | |
Author
Bytexionl
commented
Sep 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment