Solved

Removing disconnected Mailboxes in Exchange 2007

Posted on 2009-05-04
4
851 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 Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
In this video we show how to create an email address policy 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 Mail Flow…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

830 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