How to restore a deleted/tombstoned object in Active Directory

Using ADRestore v1.1 (part of the Sysinternals Suite by Mark Russinovich).

Because we need the CN of the deleted object, we need to make a list of all tombstoned objects:

AdRestore.exe > tombstoned_list.txt

restore_tombstoned_object_ad01

I need to restore a computer object L206869, open the .txt file and search for 'L206869'. In this case we know that L206869 is the CN of the object. But in some cases it’s necessary to output all tombstoned objects, to know the CN. Syntax to restore an object: AdRestore.exe -r ObjectToRestore (if there are spaces in the name, use double quotes).

AdRestore.exe -r L206869

restore_tombstoned_object_ad02

That’s it.  Thanks to Wim for this info.