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
Solved

Exchange - Search all mailboxes for message with stringq

Posted on 2015-02-18
1
57 Views
Last Modified: 2015-03-09
In an Exchange 2007 environment, what is the best way to search all mailboxes for messages with a specific string?

I found this article which talks about removing the messages: http://blogs.technet.com/b/exchange/archive/2010/10/27/removing-specific-messages-from-your-exchange-server.aspx

However, I would like to first just discover what messages are there to see who they went to before doing a mass removal.
0
Comment
Question by:Schuyler Dorsey
1 Comment
 
LVL 13

Accepted Solution

by:
Guy Lidbetter earned 500 total points
ID: 40618779
Hi Schuyler,

You use the same commands get-mailbox | export-mailbox, you just leave out the delete request... i.e.

Get-Mailbox -ResultSize Unlimited | Export-Mailbox -ContentKeywords "Specific String" -TargetMailbox YourMailbox -TargetFolder 'A Folder in your mailbox'

Open in new window


This will place a copy of any mail with the required string into a specified folder in your mailbox. It will create the folder if it doesn't exist.

Just add -deleteContent to the end to remove it.

Regards

Guy
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Utilizing an array to gracefully append to a list of EmailAddresses
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
In this video we show how to create a Distribution Group 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 Recipients >>…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

808 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