We are looking for a way to mass remove an email, sent in error, whether it is read or not. We are not looking for a recall.
We are running exchange 2010 sp3 rollup 7 on server 2008R2
ExchangeWindows Server 2008Email Servers
Last Comment
becraig
8/22/2022 - Mon
becraig
#give yourself the required permissions firstGet-Mailbox -ResultSize unlimited | Add-MailboxPermission -User MyAdmin -AccessRights FullAccess -InheritanceType all#Then do the delete# -TargetMailbox MyBackupMailbox -TargetFolder DeleteMsgs These fields are expecting that you have a mailbox and folder where you move the mail before deleting you can remove theseGet-Mailbox -ResultSize Unlimited | Export-Mailbox -SubjectKeywords "Your email subject" -IncludeFolders "\Inbox" -StartDate "11/24/2014" -EndDate "11/25/2014" -DeleteContent -TargetMailbox MyBackupMailbox -TargetFolder DeleteMsgs -Confirm:$false
Open in new window
More info on message deletion:
http://blogs.technet.com/b/exchange/archive/2010/10/27/3411398.aspx