RSS

Delete a disconnected mailbox from exchange 2010

05 Jan

Delete a disconnected mailbox from exchange 2010

 

easy command in the Exchange Management Shell

clean-mailboxdatabase “Mailbox Database 1166050598″

However you should get all information about the mailbox of the deleted user and disconnected mailbox. To get this information you should use the Exchange Management Shell. You can use the following command..

Get-MailboxStatistics -Database “Mailbox Database 1166050598″ | Where-Object {$_.DisconnectDate -Notlike $NULL} | FL DisplayName, DisconnectDate, MailboxGuid

Result

DisplayName    : USERName
DisconnectDate : 1-8-2010 18:00:48
MailboxGuid    : def4aabd-2156-5857-858f-470efc3e6f28

Thake the MailboxGuid and copy it to Notepad. For easy modification.

This MailboxGuid is needed to remove the mailbox completely.

Remove-Mailbox -Database “Mailbox Database 1166050598″ -StoreMailboxIdentity def4aabd-2156-5857-858f-470efc3e6f28

After this command the mailbox is defiantly gone from your Exchange server.

[ exchange management console
> Microsoft Exchange On-Premises
> Recipient Configuration
> Disconnected Mailbox ]

with more disconnect mailboxes you could write a batch file for removing.

Advertisements
 
Leave a comment

Posted by on January 5, 2011 in Exchange

 

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: