Deleting disconnected mailboxes in Exchange 2010

First you need to get a list of all the disconnected mailboxes –
Get-MailboxStatistics -Database “” | Where-Object {$_.DisconnectDate -Notlike $NULL} | FL DisplayName, DisconnectDate, MailboxGuid
Next step is to take the GUID of the account you want to delete and use this command –
Remove-Mailbox -Database “” -StoreMailboxIdentity

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply