An Exchange Server 2007 or 2010 user mailbox that has been deleted may not appear in the disconnected mailbox list for the server on which it was previously held.

Exchange 2007/2010 Deleted Mailbox Not Appearing in Disconnected Mailboxes

This can happen when the mailbox has not been deleted using the Disable or Remove commands in the Exchange Management Console. For example, if a mailbox was deleted using the Exchange 2003 management tools then it will not appear in disconnected mailboxes.

Exchange 2007/2010 Deleted Mailbox Not Appearing in Disconnected Mailboxes
Deleting Exchange 2007/2010 mailboxes with Exchange 2003 tools - please don't!

When mailboxes are deleted incorrectly the Exchange 2007/2010 mailbox server doesn’t process them correctly, and as a result they do not end up in the disconnected mailbox list.

However you can fix this problem with the Clean-MailboxDatabase command. Simply launch the Exchange Management Shell and run the command against the database that the user’s mailbox was on.

Clean-MailboxDatabase "EX2010MBFirst Storage GroupMailbox Database"

Refresh the disconnected mailboxes view for that mailbox server. The mailbox should now appear correctly and can be reconnected if necessary.

About the Author

Paul Cunningham

Paul is a former Microsoft MVP for Office Apps and Services. He works as a consultant, writer, and trainer specializing in Office 365 and Exchange Server. Paul no longer writes for Practical365.com.

Comments

  1. Abhishek

    Hi Paul,

    I have ran the command – Clean-MailboxDatase “mailbox name”
    the command gone through fine but mailbox is still not appearing in the disconnected mailbox.
    its not even 24 hours since we have disabled the mailbox

    1. Al

      I’ve bumped into this too. We had two exchange services operating in a DAG – found the disconnected mailboxes when I checked the second server.

  2. Chris

    Paul,

    It is 2016 and this post just saved me a lot of work. Thank you!!

  3. Nik

    Hi Paul I have deleted mailboxes with disable option, but it’s still not appear in disconnected section. What can I do? thanks.

  4. Rimvydas

    Hi Paul,

    Do I need to dismount database or stop some services prion running this command? Technet docs say so:/

  5. Alex

    Wow. A co-worked “clean” some accounts in our Active Directory so I lost users and exchange mailboxes. I restore AD deleted account with ADrestore v1.1 (amazing), enable the account, restore group memberships and notice there is no mailboxes in exchange to associate with. I read your article and was able to ran the command, so the disconnected mailboxes appear and now users are happy and I’m even more happy!!

  6. Kay

    You did it once again! When I run into an issue and do a search and find your article, I automatically start getting excited before even clicking because I know I’m a click away from my answer. Great post.

  7. Lee Hutchinson

    Brilliant! Thank you. I was beginning to sweat heavily until I found this.

  8. Ryan

    Hi Paul

    I’m having similar but different issues. In the shell I’m running get-mailbox bob | disable-mailbox & then one minute later I’ll run enable-mailuser domainbob -externalemailaddress “bob@otherdomain.com”

    The problem I’m having is that the Exchange 2007 SP2 console still sees Bob as a Mailbox for quite some time, which is problematic as I need to be able to edit the new Mail User by adding secondary SMTP aliases so that they can continue to receive mail via these. Usually this occurs instantly, but more often it is taking > 10mins to update, and today I’m still waiting for it to update a mailbox that we disabled 20 hours ago…

    I’ve tried running ‘repadmin /syncall’ on a domain controller without success.
    Do you have any ideas why this is happening and how to resolve? Thanks

  9. tawanda

    I have run the command for the targeted database but nothing displayed in the disconnected mailbox.

    please assist

  10. Alvin

    Hey Paul,

    I have experience this on Exchange 2013, do you have any idea how to fix it as the clean-mailboxdatabase no longer appear on the powershell command.

    Thanks
    Alvin

    1. Robob

      Hello Alvin,

      I read that Clean-MailboxDatabase is replaced in Exchange 2013 with the following cmdlet:
      Update-StoreMailboxState -Database “[Databasename where the mailbox is stored]” -Identity “[GUID of the mailbox]”

      To find out the GUID of all the mailboxes you can use the following cmdlet:
      Get-Mailbox -Database “[Databasename where the mailbox is stored]” -IgnoreDefaultScope | Get-MailboxStatistics | ft DisplayName,MailboxGUID

      Greetings,
      Robob.

  11. anthony ndong

    Hi Paul
    Thanks for the valuable info I ran the cmd but i ran into a problem the error is Clean-MailboxDatabase : The operation could not be performed because ‘Mailbox Database’ matches multiple entries. please advise

    thanks
    tonnie

  12. Deanna McNeil

    It turns out I needed to specify the DC and then all ran spot on! Thanks Paul

  13. Jack

    What if there are several databases and you have no way of knowing which one it was on? Is there a way to run it against several mailboxes?

  14. Stewart

    I run this command and nothing appears in my disconnected mailbox after refreshing it, what else can i try?

  15. Marcus Hammer

    Thank you for this post. This really made my life happier…

  16. Deanna McNeil

    Hi Paul, thanks for sharing this information. It seems that no matter what way I run this cmdlet, I get an error that the ‘object could not be found on domain controller . This just makes no sense, any experience coping with this error?

    1. Avatar photo
      Paul Cunningham

      I assume what you’re saying is you’re running…

      Clean-MailboxDatabase somedatabase

      …and its telling you that “somedatabase” could not be found?

      Whatever you use in place of “somedatabase” has to be a database name that Exchange can locate. If you run Get-MailboxDatabase it will show you valid database names.

      For Exchange 2007, if running on the local server, you should be able to just run…

      Clean-MailboxDatabase “Database Name”

      From a remote server or mgmt station I think you would need to use

      Clean-MailboxDatabase “ServerNameDatabase Name”

      For Exchange 2010 whether local or not it should just be…

      Clean-MailboxDatabase “Database Name”

  17. Peter

    Thank you Paul, Saved my ass!

  18. Clinton Oberbeck

    After following your steps above, I also had to use the “Connect to Server…” Action on the Disconnected Mailbox menu to connect to my server and I was then able to see the disconnected mailboxes.

Leave a Reply