Using the logical connector search
The following table outlines the properties that can be used to define an AQS query using a logical connector between two keywords:
Connector |
Example |
Description |
---|---|---|
|
|
Searches for items with both "sales" and "report" in the subject line |
|
|
Searches for items with the word "sales" or "report" in the subject line |
|
|
Searches for items without the word "sales" in the body |
Examples
If you want to delete meeting items that have specific content in the body, such as the phrase "Social Security Number", use the following code:
Search-Mailbox -Identity administrator ` -SearchQuery 'Body:"Social Security Number" ...
Get Microsoft Exchange Server 2013 PowerShell Cookbook - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.