Solved

Exchange 2010 extracting emails with specific words

Posted on 2012-04-12
3
1,049 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this video we show how to create an email address policy 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 Mail Flow…
In this video we show how to create a mailbox database 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 Servers >> Data…

758 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

21 Experts available now in Live!

Get 1:1 Help Now