Solved

Search Exchange Database email for groups of words

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

The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

Question has a verified solution.

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

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Read this checklist to learn more about the 15 things you should never include in an email signature.
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…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

895 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

17 Experts available now in Live!

Get 1:1 Help Now