Solved

Exchange 2010 extracting emails with specific words

Posted on 2012-04-12
3
1,073 Views
Last Modified: 2012-04-12
Hi,

We need to search and extract all email with a specific word.    This query needs to search each mailbox, each folder anything that has a specific word.

Any 3rd party tools suggestions?
Or maybe Exchange native?

Thanks,
0
Comment
Question by:itmti
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
Anuroopsundd earned 500 total points
ID: 37838327
#Assign the role to the required user account
New-ManagementRoleAssignment -Role “Mailbox Import Export” -User administrator
#Restart the shell

#This would search every mailbox for messages containing the word secrets in the message body,
#and export them to the administrator mailbox in a subfolder called Export
Get-Mailbox -ResultSize Unlimited | Search-Mailbox -SearchQuery “Body:’*secrets*’” -TargetMailbox administrator -TargetFolder Export
#Or, to search one mailbox for bob smith
Search-Mailbox -Identity bsmith -SearchQuery “Body:’*secrets*’” -TargetMailbox administrator -TargetFolder


http://www.n2networksolutions.com/2011/03/18/searching-exchange-2010-mailboxes-with-powershell/
0
 

Author Comment

by:itmti
ID: 37838347
The term 'Search-Mailbox' is not recognized as the name of a cmdlet, function, script file, or operable program.

and for roles:
A positional parameter cannot be found that accepts argument 'Mailbox Import Export'.
0
 

Author Closing Comment

by:itmti
ID: 37838428
sorry misspelled working!

thanks,
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this video we show how to create a Contact 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 >> Contact ta…
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…

786 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