Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Search Exchange Mailbox for e-mails with two or three keywords

Posted on 2011-09-21
2
Medium Priority
?
491 Views
Last Modified: 2012-05-12
Hello,

I need to search a specific user's mailbox for e-mail messages that match a certain criteria.

Specifically, any messages that have the words Georgia and Scope of Practice in them.

I started by using the below powershell, but it only search for messages with the word Georgia in it.

Search-Mailbox -Identity "Username" -SearchQuery "Georgia" -TargetMailbox "Legal Keywords" -TargetFolder "Username-09/21/2011" -LogLevel Full

Is there a way to search for 2 or 3 different keywords and only catch messages that have all 2 or 3 keywords in them?

Thanks!
Brian
0
Comment
Question by:UALITGUYS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
Benjamin MOREAU earned 2000 total points
ID: 36576549
Try to use the "AND" on your query.

For exemple : ... -searchquery "from:someuser@domain.com AND Subject:`Georgia'"
0
 
LVL 17

Expert Comment

by:lucid8
ID: 36581305
If you want both Words/Phrases to be present then yes use AND, however is you want results where either word/phrase is present separate keywords by comma i.e. "keyword1", "keyword2", "keyword3". here is a good article to review http://207.46.16.237/en-us/140/ms.exch.ecp.newmailboxsearch.aspx
0

Featured Post

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question