Sunday, January 13, 2008

Deleting specific mails from all mailboxes in Exchange 2007

 

       When a mail is sent out by a virus (say) from a Top officials' mailbox (or) a circular mail sent with incorrect information needs to be deleted from all the mailboxes, we had no direct option to do that in Exchange 2003, but Exchange 2007 incorporates this feature of searching and deleting particular mails from all (or) specific mailboxes in the Exchange organization.

     Here's how to do that with the Export-Mailbox cmdlet.

  • Let's say we need to delete the mail with subject Q2 Results, create a Temporary mailbox and run the below cmdlet with a account that has the Exchange Full Administrator's permission.

Get-Mailbox |Export-Mailbox -TargetMailbox temp@example.com

-SubjectKeywords "Q2 Results" -DeleteContent

No comments: