Link to home
Start Free TrialLog in
Avatar of danberry1010
danberry1010

asked on

exchange 2010 email account

Removed a user's AD account and now when I attempt to remove Exchange email account error message indicates AD Object not found.  

How do I now delete the user's email account?
ASKER CERTIFIED SOLUTION
Avatar of Haresh Nikumbh
Haresh Nikumbh
Flag of India 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
Please allow a few minutes or more for the replication to occur trough the AD.
If you can't wait so much, run an "repadmin /syncall" on a DC, close the EMC and open it again.
The exchange mailbox should be now marked as disconnected and you should be able to delete it.
Avatar of RoyoR
RoyoR

If you want to remove the email account from disconnected mailboxes, run the following command using Exchange PowerShell

Get-MailboxStatistics -Database "Mailbox Database" | Where-Object {$_.DisconnectDate -Notlike $NULL} | FL DisplayName, DisconnectDate, MailboxGuid

You will see below output:

DisplayName    : Email account
DisconnectDate : 8/28/2014 12:08:34 PM
MailboxGuid    : 2afa7ccd-cb82-47ac-9615-6a52c3d79162

Remove-Mailbox -Database "Mailbox Database" -StoreMailboxIdentity 2afa7ccd-cb82-47ac-9615-6a52c3d79162
Avatar of danberry1010

ASKER

Good