Ever experienced a disconnected mailbox, that doesn’t show up in Disconnected Mailbox, after the mailbox has be disabled or removed ? If you disable a mailbox within the Exchange Management Console or EMS and you for some reason want to reconnect it again, soon after. But are unable to find the disconnected mailbox within Disconnected Mailbox. There is a reason for it, it will show up in Disconnected Mailbox after the nightly maintenance. But it is possible to force this, like it was in Exchange 2003. The documentation for Exchange 2010 tell you otherwise, but it doesn’t always work that way

The Disable-Mailbox cmdlet also performs the cleanup task on the individual mailbox, so the mailbox is disconnected immediately after this task completes. You don’t have to wait for nightly maintenance or run the Clean-MailboxDatabase cmdlet for the mailbox to be disconnected.

But still if it doesn’t show up in the Disconnected Mailbox, you can use the commands listed below. Get an overview of disconnected mailboxes on a certain server with this command

Before showing you how to (re)connect a disconnected mailbox to a user object using the Exchange Management Shell, I will first show you how to find out which mailboxes are currently disconnected by using the Get-MailboxStatistics cmdlet and filter the output on having the DisconnectData property set, e.g.

Get-MailboxServer | Get-MailboxStatistics | where { $_.DisconnectDate } | fl DisplayName, DisconnectDate

Note that this example queries all mailbox stores of all available mailbox servers in the organization. You can narrow this selection down either by specifying a server or database in combination with Get-MailboxStatistics or by modifying the where filter, for example:
Get-MailboxStatistics –Server MbxServer1 | where { $_.DisconnectDate –ne $null} | fl DisplayName, DisconnectDateGet-MailboxStatistics –Database Mailstore1 | where { $_.DisconnectDate –ne $null} | fl DisplayName, DisconnectDate

Now in order to (re)connect a disconnected mailbox to a user object, use the Connect-Mailbox cmdlet:

Connect-Mailbox –Identity -Database

Note that if you do not specify the User parameter, Connect-Mailbox will use the matching user method to connect the disconnected mailbox. In order to connect this mailbox to a specific user, use the User parameter like this:

Connect-Mailbox –Identity -Database -User < UserID>