how to Permanently Deleting All Disconnected Mailbox
please tell me,how to Permanently Deleting All Disconnected Mailbox.thanks!
Best Regards,
jhzzh
December 1st, 2008 5:02am
Hi Jhzzh,
Which version of Exchange do you use? If Exchange 2007 then you can use powershell to remove all disconnected mailboxes.
Get list of all disconnected mailboxes in powershell with below command.
$DisMailboxes = Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName, MailboxGuid
Remove all disconnected mailboxes with below commands. (This will not ask for the confirmation since -confirm $False is set)
$DisMailboxes | ForEach { Remove-Mailbox -Database "Mailbox Database" -StoreMailboxIdentity $_.MailboxGuid -confirm $false }
Free Windows Admin Tool Kit Click here and download it now
December 1st, 2008 11:41am
Thank you very much.The issue has been resolved.
December 1st, 2008 12:50pm