Microsoft Exchange 2007 Remove Disconnected Mailboxes

Remove Mailboxes that are disconnected

Get the User name and the Unique ID of the mailbox of the disconnected mailboxes.
“get-mailboxstatistics | where-object {$_.disconnectdate -ne $null} | Select DisplayName,MailboxGuid”

List of the Databases in Server.
“get-mailboxstatistics | where-object {$_.disconnectdate -ne $null} | Select Database

Enter the full path of the exchange database and the Mailbox UID
“remove-mailbox -Database “EXCHANGE_DATABASE” -StoreMailboxIdentity MAILBOXUID”

Leave a Reply

Your email address will not be published. Required fields are marked *