Solved

Mass delete email

Posted on 2014-11-25
2
113 Views
Last Modified: 2014-11-25
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
0
Comment
Question by:colmisdiv
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 29

Expert Comment

by:becraig
ID: 40465359
#give yourself the required permissions first
Get-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 these
Get-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
0
 
LVL 29

Accepted Solution

by:
becraig earned 500 total points
ID: 40465481
My comment is of course based on the idea you are trying to remove the email from all users mailboxes in your organization.

If that is the case then the above post is perfect.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question