How to search all mailboxes in exchange 2013 for specific words

I am needing to find in the body as well as in the subject of all users on my server some specific words, then export those emails out so they can be read by those not on our exchange server.

Been reading google all day and have yet to find something that works for me.

Thanks in advance.
CCSO691Asked:
Who is Participating?
 
Jose Gabriel Ortega CEE Solution Guide - CEO Faru Bonon ITCommented:
This will bring you the log:

$ServerName="ServerName"
$word="MatchedWord"
Get-MessageTrackingLog -Server $ServerName -Start "07/01/2016 00:00:00" -End "07/31/2016 23:59:59" -ResultSize unlimited | where{ $_.MessageSubject  -match $word} 

Open in new window


And there's an option using GUI:
https://geekeefy.wordpress.com/2016/02/26/powershell-gui-based-email-search-and-removal-in-exchange/
0
 
CCSO691Author Commented:
The articles linked by Ronin did the trick for me....however for some reason it would not work under the admin account and I had to use mine....both have the permissions to look into all boxes I could never get it to work on the admin account....odd.

But I got up and going.....thanks.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
RoninCommented:
Administrator by default doesn't have those permissions.
0
 
CCSO691Author Commented:
I gave admin the permissions....figured it would work....it did not....then I gave my account the same permissions and it did work.  I also sent the output into my mailbox....that was the only difference.
0
 
RoninCommented:
Interesting ... as much as I recall that should have worked.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.