Reader small image

You're reading from  Microsoft Exchange Server 2016 PowerShell Cookbook - Fourth Edition

Product typeBook
Published inJul 2017
Reading LevelIntermediate
Publisher
ISBN-139781787126930
Edition4th Edition
Languages
Right arrow
Authors (3):
Jonas Andersson
Jonas Andersson
author image
Jonas Andersson

Jonas Andersson is devoted to constantly developing himself and his skills. He started out in the IT business in 2004 and initially worked in a support center, where he acquired a basic knowledge of the industry. In 2007, he started his career as a Microsoft Infrastructure consultant, and from 2008 onwards his focus has been on Unified Communication. At the start of 2010, he was employed at a large outsourcing company as a messaging specialist, specializing in Microsoft Exchange. His work included designing, implementing, and developing messaging solutions for enterprise customers. In 2014, he joined Microsoft Consulting Services, and from then onward his main focus has been Office 365. His role was of a deployment consultant with Microsoft's Office 365 Global Practice EMEA team. In 2016, he started to work for Swedens largest retail companies with a known brand as a Product Specialist for Office 365, mostly focusing on Skype for Business Online but also on the other workloads. As a reward for his work in the community, he was awarded the Microsoft Most Valuable Professional for the Microsoft Exchange Server product in 2014.
Read more about Jonas Andersson

Nuno Mota
Nuno Mota
author image
Nuno Mota

Nuno Mota is a Senior Microsoft Messaging Consultant currently working for a large sovereign wealth fund. He has been responsible for designing and deploying Exchange and Office 365 solutions for organizations across the UK. He also shares a passion for Skype for Business, Active Directory, and PowerShell. Besides writing his personal Exchange blog, called LetsExchange, he is also an author on the MSExchange website with dozens of published articles and product reviews as well as multiple scripts on TechNet. He has also been awarded the Microsoft Most Valuable Professional (MVP) on Exchange five times since 2012.
Read more about Nuno Mota

Mike Pfeiffer
Mike Pfeiffer
author image
Mike Pfeiffer

Mike Pfeiffer is a 20-year IT industry veteran, published author, and international conference speaker. He's a former architect for Amazon Web Services and engineer for Microsoft. Today, Pfeiffer serves as chief technologist for CloudSkills, a cloud computing training and consulting firm.
Read more about Mike Pfeiffer

View More author details
Right arrow

Query Syntaxes

Exchange 2010 used a subset of Advanced Query Syntax (AQS) in discovery searches such as those performed by the Search-Mailbox cmdlet for example. AQS was also shared with other Windows search components such as Windows Desktop Search.

Since Exchange 2013, that AQS has been replaced by Keyword Query Language, or KQL for short. KQL is shared with other Office 2013 and 2016 applications, with the most important one being SharePoint 2013/2016. Exchange and SharePoint can, together, form a single discovery domain across emails stored in Exchange and documents in SharePoint, making it crucial for a single and unified query syntax that can be used across both platforms.

This appendix provides additional information related to working with KQL when performing queries with Exchange Search.

The following Exchange Management Shell cmdlets provide a -SearchQuery parameter...

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

AND

Subject:sales AND Subject:report

Subject:(sales AND report)

These examples search for items with both sales and report in the subject line

OR

Subject:sales OR Subject:report

Subject:(sales OR report)

These examples search for items with the word sales or report in the subject line

NOT

NOT Body:sales

Body:(NOT sales)

These examples search 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...

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Microsoft Exchange Server 2016 PowerShell Cookbook - Fourth Edition
Published in: Jul 2017Publisher: ISBN-13: 9781787126930
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Authors (3)

author image
Jonas Andersson

Jonas Andersson is devoted to constantly developing himself and his skills. He started out in the IT business in 2004 and initially worked in a support center, where he acquired a basic knowledge of the industry. In 2007, he started his career as a Microsoft Infrastructure consultant, and from 2008 onwards his focus has been on Unified Communication. At the start of 2010, he was employed at a large outsourcing company as a messaging specialist, specializing in Microsoft Exchange. His work included designing, implementing, and developing messaging solutions for enterprise customers. In 2014, he joined Microsoft Consulting Services, and from then onward his main focus has been Office 365. His role was of a deployment consultant with Microsoft's Office 365 Global Practice EMEA team. In 2016, he started to work for Swedens largest retail companies with a known brand as a Product Specialist for Office 365, mostly focusing on Skype for Business Online but also on the other workloads. As a reward for his work in the community, he was awarded the Microsoft Most Valuable Professional for the Microsoft Exchange Server product in 2014.
Read more about Jonas Andersson

author image
Nuno Mota

Nuno Mota is a Senior Microsoft Messaging Consultant currently working for a large sovereign wealth fund. He has been responsible for designing and deploying Exchange and Office 365 solutions for organizations across the UK. He also shares a passion for Skype for Business, Active Directory, and PowerShell. Besides writing his personal Exchange blog, called LetsExchange, he is also an author on the MSExchange website with dozens of published articles and product reviews as well as multiple scripts on TechNet. He has also been awarded the Microsoft Most Valuable Professional (MVP) on Exchange five times since 2012.
Read more about Nuno Mota

author image
Mike Pfeiffer

Mike Pfeiffer is a 20-year IT industry veteran, published author, and international conference speaker. He's a former architect for Amazon Web Services and engineer for Microsoft. Today, Pfeiffer serves as chief technologist for CloudSkills, a cloud computing training and consulting firm.
Read more about Mike Pfeiffer