Exchange 2010 database shows a mailbox whose Active Directory account was deleted directly, so the normal disable and remove path fails, the account it points to being gone.
How do I clear an orphaned mailbox when AD cannot help?
Exchange 2010 database shows a mailbox whose Active Directory account was deleted directly, so the normal disable and remove path fails, the account it points to being gone.
How do I clear an orphaned mailbox when AD cannot help?
The orphan exists because the deletion happened in the wrong order, AD account removed while the mailbox stayed and 2010 has a specific cleanup path for exactly this state that does not need the vanished account:
The prevention lecture the situation earns: mailboxes get disabled or removed through Exchange first, then the AD account cleaned up, never the reverse, since deleting the AD account first strands the mailbox in exactly this state. Where automation or another admin created the orphan, the Clean-MailboxDatabase plus Remove-StoreMailbox pair is the reliable broom, and worth scripting into a periodic orphan check on databases where account deletions happen outside the proper process.
Clean-MailboxDatabase surfaced it, Remove-StoreMailbox cleared it, whitespace reclaimed after maintenance. The someone deleted the AD account directly mystery is solved and the proper order is now documented for the team. StoreMailbox cmdlets were the piece I did not know existed.