Solved

Remove one email accross mailboxes

Posted on 2011-03-03
6
253 Views
Last Modified: 2012-05-11
I need to remove one specific email fro all mailboxes across the organization, We have Exchnage 2007
0
Comment
Question by:nourben
[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
  • 3
  • 2
6 Comments
 
LVL 3

Assisted Solution

by:IamTheMorsa
IamTheMorsa earned 200 total points
ID: 35030620
Export-Mailbox cmdlet.
http://msexchangeteam.com/archive/2006/12/18/431934.aspx

ie

Export-Mailbox -Identity "First.Lastname" -SubjectKeywords "This is my test message." -DeleteContent
0
 

Author Comment

by:nourben
ID: 35031119
It work on my mailbox but accross the mailboxes should I use

Export-Mailbox -Server "ServerName" -SubjectKeywords "This is my test message." -DeleteContent
0
 
LVL 7

Expert Comment

by:OctInv
ID: 35032976
You need to pipe in another command first, such as:

get-maillbox -server exchangeservername | Export-Mailbox -SubjectKeywords "keyword" -DeleteContent

This will do the jon for the entire mailbox server.
0
Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 

Author Comment

by:nourben
ID: 35036905
Is there a way to export to a PST file before the delete
0
 
LVL 7

Expert Comment

by:OctInv
ID: 35037050
Yes, you can use the -PSTFolderpath switch.
0
 
LVL 7

Accepted Solution

by:
OctInv earned 300 total points
ID: 35037214
Also note that you can't run -PSTFolderpath in a 64bit environment.  The best way to do this is to install the Exchange management tools on a 32bit machine along with Outlook and run the -PSTFolderpath command from there.
Hope this helps.
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  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

Suggested Solutions

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.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

751 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