Link to home
Start Free TrialLog in
Avatar of warba
warbaFlag for Canada

asked on

AD 2003 Account Deleted and recovered through LDP, but no exchange 2007 mailbox?

Hello,

We had an issue where the Administrator removed a user's account from "Active Directory Users & Computers" tool by accident, this removed their user and the exchange 2007 mailbox that was associated with that account.

We were able to restore the AD account by removing the "isDeleted" flag from the account, however the linked mailbox does not show up in Exchange Console. The mailbox is not located in the "Disconnected Mailboxes" category either because it was never "disconnected".

What would be the steps to recover this mailbox or to re-assign the user to that mailbox?

Thanks for any help.
Avatar of Rajith Enchiparambil
Rajith Enchiparambil
Flag of United Kingdom of Great Britain and Northern Ireland image

You need to run below command to cleanup your database, like in Exchange 2003 we right click on Mailboxes and click on Run Cleanup Agent to see the Disconnected Mailboxes after removal of user object in Active Directory.

In Exchange 2007 you can do it with Clean-MailboxDatabase command.

Clean-MailboxDatabase Database Name
Avatar of warba

ASKER

I tried that command but have an issue running it,

Our exchange database is split in 4 stores, named:

Database Store 1, 2, 3, 4, 5.

But I do not think that the cmd likes spaces, what would be a way to find the GUID of the mailbox store? This can be used as an -identity parameter as well.
ASKER CERTIFIED SOLUTION
Avatar of Rajith Enchiparambil
Rajith Enchiparambil
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of warba

ASKER

I tried your suggestion there, using "Database Store 1" but for some reason that did not work, so I went and go the GUID of Database Store 1 and it worked just fine.

Your suggested cmd worked.

Thanks.