Recover deleted Active directory user account and restore Mailbox in Server 2008 and Exchange 2010

Scenario:  Restore user account where the account was accidentally/ purposely deleted and the mailbox resides on an Exchange 2010 in a mixed 2003, 2008 environment. The deleted mailbox is now showing in disconnected mailboxes.

The first step is to recover the deleted user account in AD. Hoping that you have left the tombstones on the server to either 60 days or 180 days which is the default for windows 2003 and up.

There are several ways too restore the account, the most painstaking one using system state restore after booting into directory services restore mode which means downtime.

The easiest and simplest way is using adrestore CLI available from Microsoft, if you need GUI adrestore.net is the best.

Download it from the link and install on the DC.

Adrestore.net

The how to is available from the developers site http://blogs.microsoft.co.il/blogs/guyt/archive/2007/12/15/adrestore-net-rewrite.aspx and http://www.petri.co.il/recovering-deleted-items-active-directory.htm

Now that you have restored the user account the next problem is to connect the disconnected mailbox which is rather easy, just open EMC 2010 right-click on a disconnected mailbox, select Connect and choose a matching user in this case.

If the online maintainence hasn’t run then the deleted mailbox will not show in disconnected mailbox, you will need to run this command in PS

Clean-MailboxDatabase databasename

And now you can connect the mailbox to the user you just restored

About these ads

Posted on October 31, 2012, in Active Directory, Exchange, Microsoft and tagged , , , . Bookmark the permalink. 13 Comments.

  1. This is exactly what happened to me – 20 AD Users deleted from AD.
    I tried using the ADRestore.NET tool which simply returned ’0 Tombstones found’ – great?..
    Tried using LDAP – and searching deleted objects and found nothing. Exchange 2010 has completed Purged them somehow, i can’t find a way to restore the AD objects done by Exchange yesturday… Please help.

  2. Hi Pete, can you elaborate on what you have done so far, is this 2003/2008 mixed mode domain? what Server OS are you running on the main DC? what sort of backup are you running?
    Did you run adrestore.net logged on as domain admin on one of the DC’s?
    Have you followed the steps here to display deleted objects container: http://technet.microsoft.com/en-us/library/dd379509(v=ws.10).aspx

    are there any errors logged in the eventlogs when you run a query using ldp.exe ?

    if you are running 2008 R2 DC i would suggest you give this a read before jumping to a authoritative restore using a backup.

    http://technet.microsoft.com/en-us/library/dd392261(v=ws.10).aspx

  3. You TOTALLY saved my ass, the steps worked a treat and got my user back again. Thanks a million. PS Works with Server 2008 and Exchange 2007 SP2

  4. You save my day, Daniel! It works like a charm on Win 2003 forest functional level with Exchange 2010 SP2.

  5. i have run the command Clean-MailboxDatabase databasename targeting the correct database in the Exchange Management Shell successfully but nothing displays in the disconnected mailboxes even after I do refresh.

    Kindly assist

  6. Thanks Godwin you save my day i accidentally deleted a CEO AD acct and exchange acct but this help me a lot. Thanks once again.

  7. Any idea where download this tool all the links are dead :(

  8. This was AWESOME!!! You Saved my ass :-)

  9. Thank you so much for this guide and utility. This saved me so much time!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: