Solved

Search Exchange Database email for groups of words

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
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 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…
how to add IIS SMTP to handle application/Scanner relays into office 365.

765 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