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?
How do I now delete the user's email account?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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-6a 52c3d79162
Remove-Mailbox -Database "Mailbox Database" -StoreMailboxIdentity 2afa7ccd-cb82-47ac-9615-6a 52c3d79162
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-6a
Remove-Mailbox -Database "Mailbox Database" -StoreMailboxIdentity 2afa7ccd-cb82-47ac-9615-6a
ASKER
Good
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.