Restore deleted AD object

13 Apr

ADRestore GUI version

http://askaresh.blogspot.com/2008/11/adrestore-gui-version.html

Accidentally deleted user, computer account or OU’s from Active Directory. Don’t worry, now you can get them back using ADRestore tool using GUI interface.

Though there is a command line version of tombstone reanimation tool called adrestore – sysinternals, many people are not CLI savvies and having a GUI version of this functionality could really help them out.

Insight on tombstone: Reanimating Active Directory Tombstone Objects – By Gil Kirkpatrick
Gil Kirkpatrick’s article at Technet

Main features:

  • Browsing the tombstones
  • Domain Controller targeting
  • Can be used with alternative credentials (convenient if you do not logon to your desktop as Domain Admin, which you should never do anyway)
  • User/Computer/OU/Container reanimation
  • Preview of tombstone attributes

Here are some sceenshots:

Enumerating tombstones
1

Previewing the tombstone attributes
2

Restoring a deleted user account
3

Notice that if you delete an OU with accounts in it, you will have to restore first the OUs the accounts were in, otherwise the reanimation of the child object will fail. It is not enough to create an OU with the same name as this will be a totally new object in AD and child object’s lastKnowParent attribute will still reference the deleted OU. Here is a walthrough:

Initial state:
4

TestOU organizational unit is deleted:
5

State of tombstones (notice that lastKnownParent attribute of user and computer accounts reference the deleted OU):
6

OU is restored (lastKnowParent points to the restored OU’s distinguished name):
7

Both computer and user accounts that resided in TestOU are reanimated:
8

Download ADRestore.NET

Don’t forget to post your comments 🙂