Search Exchange Database email for groups of words
Posted on 2010-08-23
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.