Export-mailbox -allcontentkeywords AND operator?
I need to do a search for e-mails that contain two words. Something like this: export-mailbox person@mysystem.com -allcontentkeywords (("apple") -and ("orange")) But I cannot get the syntax correct, is this possible? I am on Exchange 2007 SP2.Jason Meyer
July 22nd, 2011 9:10am

Is there an AND operator that can be used for searching for multiple keywords with Exchange 2007? Something like -allcontentkeywords apple and orange? I know I can do an OR with multiple but I need to be able to do an AND... Also, not sure if this matters but our CAS and HUB are on SP3, mailbox servers are still on SP2. Thanks for any input! Jason Meyer
Free Windows Admin Tool Kit Click here and download it now
July 22nd, 2011 9:41am

Hi Jason, I'm afraid you cannot do it. But there is a workaround: 1, Export items which includes "apple" in the person@mysystem.com to a temp mailbox. 2, Export items which includes "orange" in the temp mailbox to target mailbox. By the way, suggest you install SP3 for you mailbox server. Frank Wang Forum Support 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
July 25th, 2011 3:21am

Hi Jason, Any updates?
Free Windows Admin Tool Kit Click here and download it now
July 26th, 2011 9:34pm

Frank, we used the process that you described. The "orange" word was actually about 23 words but it all worked out. I manually checked about a dozen of the exported e-mails and they all passed the content test. Thanks for sharing the knowledge! JasonJason Meyer
July 29th, 2011 6:20pm

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

Other recent topics Other recent topics