Solved

Removing disconnected Mailboxes in Exchange 2007

Posted on 2009-05-04
4
847 Views
Last Modified: 2012-05-06
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
Comment
Question by:ohmErnie
  • 2
  • 2
4 Comments
 
LVL 17

Expert Comment

by:Suraj
ID: 24296045
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
 
LVL 1

Author Comment

by:ohmErnie
ID: 24296176
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
 
LVL 17

Expert Comment

by:Suraj
ID: 24296246
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
 
LVL 1

Accepted Solution

by:
ohmErnie earned 0 total points
ID: 24305008
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
how to add IIS SMTP to handle application/Scanner relays into office 365.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now