RSS

How to remove disconnected mailboxes in Exchange Server 2010

05 Jan
 

How to remove disconnected mailboxes in Exchange Server 2010

Steps to remove single disconnected mailbox from Exchange 2010:

1. Make active directory replication is completed after deleted the mailbox.
2. Go to Exchange Management Shell
3. Run the following command to get the updated mailbox information from active directory.

Get-MailboxDatabase | Clean-MailboxDatabase

4.Run the following command to get the all the Mailboxes from a Exchange 2010 Mailbox database. Disconnected mailbox will have "DisconnectedDate" , But Normal mailboxes Disconnected date will be empty.

Get-MailboxStatistics -Database "E14 Mailbox DB Name" | FL DisplayName, DisconnectDate, MailboxGuid

5. From the output, Copy the MailboxGuid Value for the Disconnected Mailbox that we want to remove.
6. Execute the following command to Remove the disconnected mailbox from Exchange 2010 completely.

Remove-Mailbox -Database "E14 Mailbox DB Name" -StoreMailboxIdentity "MailboxGuid" -Confirm:$False

Steps to remove all disconnected mailbox from Exchange 2010:

1. Make active directory replication is completed after deleted the mailbox.
2. Go to Exchange Management Shell
3. Run the following command to get the updated mailbox information from active directory.

Get-MailboxDatabase | Clean-MailboxDatabase

4.Run the following command to get the all the Mailboxes from a Exchange 2010 Mailbox database. Disconnected mailbox will have "DisconnectedDate" , But Normal mailboxes Disconnected date will be empty.

Get-MailboxStatistics -Database "E14 Mailbox DB Name" | FL DisplayName, DisconnectDate, MailboxGuid

5. Execute the following command to remove all disconnected mailbox from Exchange 2010 completely.

Get-MailboxStatistics | Where { $_.DisconnectDate -ne $null } | Remove-Mailbox -Database "E14 Mailbox DB Name" -StoreMailboxIdentity $_.MailboxGuid -Confirm:$false

[OR]

$Users = Get-MailboxStatistics | Where { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid

$Users | ForEach { Remove-Mailbox -Database "E14 Mailbox DB Name" -StoreMailboxIdentity $_.MailboxGuid -Confirm:$false }

 

http://msexchangehelp.wordpress.com/2010/03/03/how-to-remove-disconnected-mailboxes-in-exchange-server-2010/#comment-125 

Advertisements
 
3 Comments

Posted by on January 5, 2011 in Exchange

 

3 responses to “How to remove disconnected mailboxes in Exchange Server 2010

  1. mass income multiplier review

    February 14, 2013 at 1:53 pm

    It’s hard to find knowledgeable people in this particular topic, but you seem like you know what you’re talking about!
    Thanks

     
  2. starfleetsnoppy

    July 15, 2013 at 10:05 pm

    I thank you for the information you have given. It work for me all so. I will be keeping this site in my listings. Will Done.

     
  3. beyonce beyonce music album download

    February 1, 2014 at 4:47 am

    There is definately a great deal to know about this issue.
    I really like all the points you made.

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: