Welcome ! Login
Original Message
Forum Ms Exchange 
Topic CMDLET - Purge Deleted \ Disconnected Mailboxes 
Author Beavis Christ 
Date Created 7/16/2009 2:20:37 PM 
Message After you remove or disconnect mailboxes in Exchange 2007 you can either wait for them to automaticly be removed or run the below commandlets.

First run this:

$users = Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid,Database

Next run the below:

$users | ForEach { Remove-Mailbox -Database $_.Database -StoreMailboxIdentity $_.MailboxGuid -confirm:$false } 
      
Responses
No records
Home Recipes Links Blog Forums Join Us