Velocity Technical Archive
Deleting disconnected mailboxes in Exchange 2010
Archived Reference: This is a historical technical article preserved from the Velocity Technologies knowledge base. For current Phoenix and East Valley managed IT services, explore our managed IT services or cybersecurity solutions.
First you need to get a list of all the disconnected mailboxes -\nGet-MailboxStatistics -Database "" | Where-Object {$_.DisconnectDate -Notlike $NULL} | FL DisplayName, DisconnectDate, MailboxGuid \nNext phase is to take the GUID of the account you want to delete and use this command -\nRemove-Mailbox -Database "" -StoreMailboxIdentity