The whole process is described here, however, what the article failed to mention:
- you must use LDAPS to connect to AD
- When type in new DN, make sure you type in CN portion as well. Most people tend to copy only OU path
- You need to connect to AD using a user account in local domain, otherwise you won't be see any object under "Deleted Objects" OU
To restore a deleted Active Directory object using Ldp.exe
- Open Ldp.exe from an elevated command prompt. Open a command prompt (Cmd.exe) as an administrator. To open a command prompt as an administrator, click Start. In Start Search, type Command Prompt. At the top of the Start menu, right-click Command Prompt, and then click Run as administrator. If the User Account Control dialog box appears, enter the appropriate credentials (if requested), confirm that the action it displays is what you want, and then click Continue.
- To connect and bind to the server that hosts the forest root domain of your AD DS environment, under Connections, click Connect, and then click Bind.
- On the Options menu, click Controls.
- In the Controls dialog box, expand the Load Predefined drop-down list, click Return Deleted Objects, and then click OK.
- In the console tree, navigate to the CN=Deleted Objects container.
- Locate and right-click the deleted Active Directory object that you want to restore, and then click Modify.
- In the Modify dialog box:
- In Edit Entry Attribute, type isDeleted.
- Leave the Values box empty.
- Under Operation, click Delete, and then click Enter.
- In Edit Entry Attribute, type distinguishedName.
- In Values, type the original distinguished name (also known as DN) of this Active Directory object.
- Under Operation, click Replace.
- Make sure that the Extended check box is selected, click Enter, and then click Run.
- In Edit Entry Attribute, type isDeleted.