Mailboxes without AD accounts, not in disconnected state
We have a weird situation right now. We have a group of mailboxes whose AD accounts no longer exist, but which still show up as active mailboxes rather than disconnected. As far as I can tell the AD accounts were deleted long ago - my oldest AD backup does not have them in the tree so I cannot restore them that way. These are not active employees so I am not trying to recover anything, just clean up the mess. None of my staff is fessing up to this, either, so I don't know the method of their disappearance.
When I try to view the properties page of the mailbox, or run any powershell against it, the error states that the user couldn't be found on the domain controller (true). We have domain controllers from Windows Server 2003 to 2012, functional level of 2003. Exchange is 2010 SP3, RU4, on Windows Server 2008 R2.
If an AD account is removed, shouldn't any associated mailbox move to a disconnected state? Any reasons why that wouldn't happen? Also, can I get rid of these somehow? Disable-Mailbox and Remove-Mailbox are failing without an AD object...
Posted Mar 25, 2014, 8:07 PM UTC
Clean-MailboxDatabase is your friend
http://technet.microsoft.com/en-us/library/bb124076(v=exchg.141).aspx
I should say i did Get-MailboxDatabase | Clean-MailboxDatabase about an hour ago and they remain.