Link to home
Start Free TrialLog in
Avatar of DCC Jax
DCC Jax

asked on

Exchange 2007 Legal Export

I need some assistance here.
I'm needing to export emails to and from a certain email address and this doesn't seem to be grabbing them.
Get-mailbox -database "Mailbox Database" | export-mailbox -ContentKeywords "johndoe@john.com" -TargetFolder "\Discovery" -TargetMailbox legadiscovery

If I do a search by say, my name it finds it in the body of the message and exports correctly, but I'm needing to capture all emails from both sender and receiver. If I use the email address requested it doesn't turn up anything. Even though there's quite a few in a few peoples mailboxes.

Any help would be great!
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

What i would recommend trying is using the "AllContentKeywords" parameter to see if you get better results.

Will.
Avatar of DCC Jax
DCC Jax

ASKER

So do:
Get-mailbox -database "Mailbox Database" | export-mailbox -AllContentKeywords "johndoe@john.com" -TargetFolder "\Discovery" -TargetMailbox legadiscovery
Avatar of DCC Jax

ASKER

When using -AllContentKeywords it doesn't narrow the search down to anything related to the email addresss, it's like it's grabbing everything.
Yeah that is correct.

Will.
It should work the same way but it also searches the Subject as well as the Message Body and attachment content.

Will.
ASKER CERTIFIED SOLUTION
Avatar of Will Szymkowski
Will Szymkowski
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DCC Jax

ASKER

If I use -SenderKeywords I'm able to get everything that was received into the organization, but can't seem to get both directions incoming and outgoing related to the address.
Avatar of DCC Jax

ASKER

Sorry, just now noticed your comment about -RecipientKeyWords! Thanks! That gets exactly what I want!
Excellent.

Glad to help!

Will.