Cross Mailbox Search with PowerShell

Girac
Girac used Ask the Experts™
on
Hello all,
I need to search the exchange 2007 db across To, From, CC.BCC, Subject and Message for "FRED" including different variation in spelling FERD, FRDE etc.

I have been using the commands:
get-mailbox –Database DB1 | Export-Mailbox –SubjectKeywords "Discovery Keywords" –TargetMailbox Administrator –TargetFolder 'MyData'
and then get-mailbox –Database DB1 | Export-Mailbox –ContentKeywords "Discovery Keywords" –TargetMailbox Administrator –TargetFolder 'MyData'
Is there a way I can search by running one command, that will include the To, From, CC, BCC fields as well?
Currently I had to do one pass for each variation in spelling.

ciao
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Satya PathakLead Technical Consultant

Commented:
I would suggest you read a MSteam kb as per your Ques.
http://msexchangeteam.com/default.aspx
Commented:
You are saying that the To, From, CC, BCC fields  are included in MyData folder ?

Refer following link:

http://msexchangeteam.com/archive/2006/11/28/431669.aspx

Commented:
Typo:

You are saying that the To, From, CC, BCC fields  are not included in MyData folder ?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial