Date created: Friday, August 27, 2010 7:44:42 PM. Last modified: Thursday, December 13, 2012 11:41:20 AM
Disconnected Mailboxes
Disconnected mailboxes are both usefull and not, in my opinion but if you are sure you don't want them then you can start by listing them in the Exchange Management Shell:
Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid
If you are satisfied these are all to go, you can mark them for deletion (which I belive will occur the next time you server performs its rutine database maintenance):
Get-MailboxStatistics | where { $_.disconnectDate -ne $null } | select MailboxGUID | ForEach { Remove-Mailbox -Database "Mailbox Database" -StoreMailboxIdentity $_.MailboxGUID -confirm:$false }
Becarefull with the -confirm:$false part and also note that you will need to substitue your own mailbox name for the mailbox database which stores the disconnected mailboxes
Previous page: Content Filter BypassedSenders
Next page: Email Attachment with Powershell