Solved

Search Exchange Database email for groups of words

Posted on 2010-08-23
4
455 Views
Last Modified: 2012-05-10
I have been given a task to search all my mailboxes in Exchange 2007 for a bunch of different words.  Like someone's name, a project name, a company name, etc.

I know powershell will allow me to search the database and copy the emails found to folder in another mailbox, but my issue is if I am looking for a name such as Joe S Cool, and must also search for ABC Company, and also search for a word like "contract", the search will find all emails with the word Joe, S,
Cool, ABC, Company, etc.  you get the picture.  There are going to be 100's of thousands of emails.  Does anyone know of way to perform this search better, like finding emails that have the entire name of "Joe S Cool", "ABC Company" instead of the individual names.

I need to copy these emails and not delete them from the mailboxes, and I want to ensure that I don't get a bunch of emails that just have the word "joe" and not the full name.

500 points for this one.
0
Comment
Question by:Mhorrocks1962
  • 3
4 Comments
 
LVL 28

Accepted Solution

by:
sunnyc7 earned 500 total points
ID: 33504607
Subject search
get-mailbox –Database DB1 | Export-Mailbox –SubjectKeywords "Discovery Keywords" –TargetMailbox Administrator –TargetFolder "c:\test"

http://msexchangeteam.com/archive/2006/12/18/431934.aspx

All Content Keyword Search
get-mailbox –Database DB1 | Export-Mailbox -TargetFolder "c:\test" -AllContentKeywords "Joe S Cool" "ABC Company"

Content Keyword Search
get-mailbox –Database DB1 | Export-Mailbox -TargetFolder MyData -ContentKeywords "merger" -AttachmentFilenames "*orgchart*" -StartDate "03/01/2010 12:01:00"
http://technet.microsoft.com/en-us/library/aa998579.aspx

0
 

Author Comment

by:Mhorrocks1962
ID: 33514231
Great answer, exactly what I was looking for.

How about any third party software for accomplishing this?  If not, the above will do the trick.
0
 
LVL 28

Expert Comment

by:sunnyc7
ID: 33514359
Not sure @ third party.

0
 
LVL 28

Expert Comment

by:sunnyc7
ID: 33521491
Thanks for the points :)
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
In this video we show how to create a User Mailbox 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 >> Mailb…
This video discusses moving either the default database or any database to a new volume.

760 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

20 Experts available now in Live!

Get 1:1 Help Now