• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 859
  • Last Modified:

Removing disconnected Mailboxes in Exchange 2007

I have about 3 mailboxes that are showing as disconnected.  I had some issues transistioning mailboxes from exchange 2003 to 2007 and changing these mailboxes to resource mailboxes.  The 3 mailboxes that show as disconnected are also already on the new server and connected to a resource as a user.  They do appear to be working fine.  I just dont know why the same resource mailbox is showing up as disconnected.  I tried to purge them out of exchange 2003 and I get a message stating they are already connected to another user.
0
ohmErnie
Asked:
ohmErnie
  • 2
  • 2
1 Solution
 
SurajCommented:
There could be a replication problem. Moreover you can try disabling the mailbox on exchange 2007 for the user account which appears to be a resource mailbox. Then purge the mailbox which shows as disconnected on Exchange 2003. Reconnect the original mailbox on Exchange 2007. If you are unable to see the mailbox as disconnected on the exchange 2007, you can force by running

clean-mailboxdatabase <database name which had user's mailbox>.

Thanks,
x-sam
0
 
ohmErnieAuthor Commented:
I was able to get the mailbox to disappear from Exchange 2003 by running the database maintenance, however, they still show up as disconnect mailboxes on exchange 2007.  I am afraid if I disable "good" mailbox, it will be deleted as well.
0
 
SurajCommented:
You can check the mailbox item count using Get-MailboxStatistics | Where {$_.DisconnectDate -ne $null}. The you can decide on if it does contain the items which would be required.

Thanks,
x-sam
0
 
ohmErnieAuthor Commented:
I found this online:

Get all disconnected mailboxes
Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid
 
Remove a single disconnected mailbox
Remove-Mailbox -Database <Database-Name> -StoreMailboxIdentity <MailboxGuid> -confirm:$false
 
Remove all disconnected mailboxes
$users = Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid,Database
 
Now, all disconnected mailboxes are in a variable and you need to run following cmdlet to remove all of them:
$users | ForEach { Remove-Mailbox -Database $_.Database -StoreMailboxIdentity $_.MailboxGuid -confirm:$false }
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now