Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to find all emails sent to and from a particular domain (abc.org). Does anyone know if I can use wildcard in the following query?

get-mailbox -OrganizationalUnit EMPL | export-mailbox -SubjectKeywords "Keywords"
-ContentKeywords "Keywords" -AllContentKeywords "Keywords" -SenderKeywords "*@abc.org"
-RecipientKeywords "*@abc.org" -StartDate 03/01/11 -EndDate 05/05/2011 
-ExcludeFolders "\Contacts", "\Calendar", "\Notes", "\Tasks", "\Junk E-Mail", 
"RSS Feeds" -TargetFolder xyz -TargetMailbox xyz

I'm not getting the results I anticipated and cannot find authoritative documentation on it.

Thanks in advance for any help on this.

share|improve this question
    
Does FOIA refer to the freedom of information act? If so, is it really necessary in the question title? (hint: you might get more views if you genericise(word?!) the title) –  Ben Pilbrow May 13 '11 at 18:06
    
I think you're right and thanks. It was unnecessary. –  user81308 May 13 '11 at 20:24
    
Do you get any results if you use a particular email address instead of the wildcard? –  Kara Marfia May 13 '11 at 20:33
    
Kara - I didn't have any email addresses to work with, only domains. –  user81308 May 16 '11 at 23:31
    
Did you ever resolve this? –  Richard Gadsden Sep 28 '11 at 16:25

1 Answer 1

up vote 2 down vote accepted

What do you mean by "not getting the results I anticipated"? Are you getting 0 messages, a few messages, every single message?

I cannot find authoritative documentation either that says "yes" or "no" to wildcards. The Technet documentation specifically notes that wildcards are allowed for other parameters, but states nothing about wildcards for senderkeywords and recipientkeywords. (Export-Mailbox for 2007)

I do note, however, you have defined both sender and recipient keywords in the same command. Perhaps you could run this twice, once looking for all inbound mail and once looking for all outbound? I don't think that export-mailbox will know that you're looking for the two as 'either/or' instead of 'and'.

share|improve this answer
    
Thanks for the suggestion to run it twice. That will be my next step. As far as "anticipated" results, I find it very, very hard to believe that not a single person communicated with the organization in question :) –  user81308 May 13 '11 at 17:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.