Solved

Search Exchange Database email for groups of words

Posted on 2010-08-23
4
457 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
In this video we show how to create an Accepted Domain 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 >> Ac…
To show how to generate a certificate request 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 >> Certificates…

810 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