Solved

Exchange - Search all mailboxes for message with stringq

Posted on 2015-02-18
1
52 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Easy CSR creation in Exchange 2007,2010 and 2013
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
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…
how to add IIS SMTP to handle application/Scanner relays into office 365.

757 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

18 Experts available now in Live!

Get 1:1 Help Now