Answered by:
Keyword search OR

Question
-
When doing a keyword search in Exchange 2010 SP1
If I want to search for: Allen,King,Allan,Alan - can I do a keyword search for "Allen OR King OR Alan OR Allan" - w/o the quotes?
So that is a search for four different words and I want results if any occurrence of any of the words.
Thanks - SJMP
Thursday, August 18, 2011 7:29 PM
Answers
-
Hi SJMP,
Per my test, you can use this command to do a keyword search for “Allen OR King OR Alan OR Allan” in a mailbox:
Search-mailbox –identity “April Stewart” –SearchQuery ‘”Allen” or “King” or “Alan” or “Allan”’ –TargetMailbox “Administrator” –TargetFolder “SearchAndDeleteLog” –LogOnly –LogLevel Full
(This searches April Stewart's mailbox for messages that contain keyword "Allen" or “Allan” or “King” or “Alan” and logs the result in the SearchAndDeleteLog folder in the administrator's mailbox. Messages aren't copied to the target mailbox.)
Here is a related document for you:
Search-Mailbox
http://technet.microsoft.com/en-us/library/dd298173.aspx
You also can create a Discovery search to search for mailbox (which with keyword“Allen OR King OR Alan OR Allan”), here are some related documents for you:
Create a Discovery Search
http://technet.microsoft.com/en-us/library/dd353189.aspx
New-MailboxSearch
http://technet.microsoft.com/en-us/library/dd298064.aspx
More Options in 2010 SP1 control Panel (ECP) Mailbox Search
http://www.howexchangeworks.com/2010/09/more-options-in-2010-sp1-control-panel.html
Thanks,
Evan Liu
TechNet Subscriber Support in forum
If you have any feedback on our support, please contact tngfb@microsoft.com
- Marked as answer by SJMP Monday, August 22, 2011 12:20 PM
Friday, August 19, 2011 4:32 AMModerator
All replies
-
I don't think it can handles OR statements
Troy Werelius
www.Lucid8.com
Search, Recover, & Extract Mailboxes, Folders, & Email Items from Offline EDB's and Live Exchange Servers with Lucid8's DigiScopeThursday, August 18, 2011 11:12 PM -
Hi SJMP,
Per my test, you can use this command to do a keyword search for “Allen OR King OR Alan OR Allan” in a mailbox:
Search-mailbox –identity “April Stewart” –SearchQuery ‘”Allen” or “King” or “Alan” or “Allan”’ –TargetMailbox “Administrator” –TargetFolder “SearchAndDeleteLog” –LogOnly –LogLevel Full
(This searches April Stewart's mailbox for messages that contain keyword "Allen" or “Allan” or “King” or “Alan” and logs the result in the SearchAndDeleteLog folder in the administrator's mailbox. Messages aren't copied to the target mailbox.)
Here is a related document for you:
Search-Mailbox
http://technet.microsoft.com/en-us/library/dd298173.aspx
You also can create a Discovery search to search for mailbox (which with keyword“Allen OR King OR Alan OR Allan”), here are some related documents for you:
Create a Discovery Search
http://technet.microsoft.com/en-us/library/dd353189.aspx
New-MailboxSearch
http://technet.microsoft.com/en-us/library/dd298064.aspx
More Options in 2010 SP1 control Panel (ECP) Mailbox Search
http://www.howexchangeworks.com/2010/09/more-options-in-2010-sp1-control-panel.html
Thanks,
Evan Liu
TechNet Subscriber Support in forum
If you have any feedback on our support, please contact tngfb@microsoft.com
- Marked as answer by SJMP Monday, August 22, 2011 12:20 PM
Friday, August 19, 2011 4:32 AMModerator -
thank you Evan - do I need the quotes if using ECP.
And is there any advantage of using powershell vs. ECP console?
Thanks,
Friday, August 19, 2011 12:11 PM -
Not, don’t need the quotes if using ECP。
I think the result of PowerShell command is more detail, but using ECP you can search all mailboxes at the same time.
Thanks,
Evan Liu
TechNet Subscriber Support in forum
If you have any feedback on our support, please contact tngfb@microsoft.com
Friday, August 19, 2011 1:08 PMModerator -
Hi SJMP,
Any updates on this issue?
Thanks,Evan Liu
TechNet Subscriber Support in forum
If you have any feedback on our support, please contact tngfb@microsoft.comMonday, August 22, 2011 1:32 AMModerator -
thats all i needed = thanksMonday, August 22, 2011 12:20 PM