export-mailbox all but 3 senders
I have a discovery to run on mailboxes, I'll be searching multiple mailboxes for mail sent to or from a specific domain. Pretty standard so far. But, I've been asked to exclude 3 email addresses in this domain. export-mailbox "$mailbox" -senderkeywords "$contacts" -startdate $startdate -enddate $enddate -PSTFolderpath "$targetdir" -confirm:$false How can I do this where $contacts would include *@ms.com then exclude 1@ms.com, 2@ms.com and 3@ms.com ? Thanks for ideas!
December 20th, 2011 4:00pm

Hi The_Messenger, Seems like there is no directly way to filter what you need if you are running Exchange 2007. Maybe you have to export all specific domain mails to temp mailbox, then exclude(delete) 3 mail adderss mails in the temp mailbox. Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.Frank Wang TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
December 21st, 2011 4:00am

Hi The_Messenger, Seems like there is no directly way to filter what you need if you are running Exchange 2007. Maybe you have to export all specific domain mails to temp mailbox, then exclude(delete) 3 mail adderss mails in the temp mailbox. Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.Frank Wang TechNet Community Support
December 21st, 2011 11:54am

Hi The_Messenger, Any updates?Frank Wang TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
December 26th, 2011 9:39pm

I used Frank's idea but did the final filtering/deleting with a second export-mailbox command not outlook. I created a new mailbox, then ran may export on the 10 mailboxes I have, with the included domain for senders and receivers. This gave me all the email I had to work with in a single output mailbox. Finally I ran export-mailbox with remove-content on the output mailbox.
December 27th, 2011 8:43am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics