Solved

Exchange 2010 extracting emails with specific words

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
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 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…

861 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

25 Experts available now in Live!

Get 1:1 Help Now