Exchange 2010 disconnected mailboxes

After moving accounts from a Exchange 2003 server to a new Exchange 2010 we discovered several disconnected mailboxes.

I believe these were disconnected because the mailbox was not properly removed from the 2003 server, and the mailbox cleanup agent wasn't ran to resolve the situation. Manually running the cleanup agent two times removes the mailboxes from Exchange 2003. Now we need to reconnect the disconnected mailboxes in Exchange 2010. This can be resolved from the Exchange Management Shell command line.

To list all mailboxes currently disconnected:

get-mailboxserver | get-mailboxstatistics | where { $_.DisconnectDate } | fl DisplayName, DisconnectDate

To reconnect mailboxes:

connect-mailbox -Database "mailbox database abcdefg" -Identify "Display, Name"

No feedback yet