Solved

Removing disconnected Mailboxes in Exchange 2007

Posted on 2009-05-04
4
854 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Read this checklist to learn more about the 15 things you should never include in an email signature.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
how to add IIS SMTP to handle application/Scanner relays into office 365.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

742 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