Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Search Exchange Database email for groups of words

Posted on 2010-08-23
4
Medium Priority
?
465 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 28

Accepted Solution

by:
sunnyc7 earned 2000 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
As much as Microsoft wants to kill off PST file support, just as they tried to do with public folders, there are still times when it is useful or downright necessary to export Exchange mailboxes to PST files. Thankfully, it is still possible to e…
In this video we show how to create a Shared 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 >> Sha…
To show how to create a transport rule 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 >> Rules tab.:  To cr…

610 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