Using search operators
The following table outlines the Boolean search operators that can be used to define a KQL query using a logical connector between two keywords:
Connector | Example | Description |
|
| These examples search for items with both |
|
| These examples search for items with the word |
|
| These examples search for items without the word |
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 commands:
Search-Mailbox administrator '-SearchQuery 'Body:"Social Security Number" AND Kind:Meeting' '-DeleteContent -Force
If you want to perform a discovery search based on keywords used in either the body or subject of the message in a particular mailbox, use the following commands:
New...