Solved

Mass delete email

Posted on 2014-11-25
2
99 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
  • 2
2 Comments
 
LVL 28

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 28

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

How does your email signature look on mobiles?

Do your employees use mobile devices to reply to emails? With mobile becoming increasingly important to the business world, it is in your best interest to make sure that your email signature looks great across all types of devices.

Join & Write a Comment

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

707 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now