Filter objects out of the pipeline

Intermediate
Administrator
Azure
Microsoft Entra ID
Azure Cloud Shell
Azure PowerShell
Azure Virtual Machines
Microsoft 365

This module explains how to filter objects out of the pipeline by using the Where-Object cmdlet to specify various criteria.

Learning objectives

Upon completion of this module, the learner will be able to:

  • List the major PowerShell comparison operators.

  • Explain how to filter objects by using basic syntax.

  • Explain how to filter objects by using advanced syntax.

  • Filter objects.

  • Explain how to optimize filtering performance in the pipeline.

Prerequisites

  • Familiarity with Windows networking technologies and implementation.

  • Familiarity with Windows Server administration, maintenance, and troubleshooting.

  • Familiarity with Windows PowerShell and its commands to perform specific tasks.

  • Familiarity with PowerShell cmdlets used for system administration tasks related to Active Directory, network configuration, server administration, and Windows 10 device administration.