Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Removing disconnected Mailboxes in Exchange 2007

Posted on 2009-05-04
4
Medium Priority
?
858 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

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…
One-stop solution for Exchange Administrators to address all MS Exchange Server issues, which is known by the name of Stellar Exchange Toolkit.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
This video discusses moving either the default database or any database to a new volume.
Suggested Courses

636 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