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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jose Gabriel Ortega CastroCEOCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook 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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.