How The Where-Object Cmdlet Works In PowerShell

One of the beauties of PowerShell is that it deals with objects. Objects have properties and properties have values, which enables you to filter groups of objects by different values in their properties. Now, knowing this, you could try writing a bunch of If statements, but at the command line, that is unwieldy. But never fear! Where-Object is here!The Where-Object cmdlet is one of the most frequently used commands in PowerShell. It allows you to filter any kind of object! Even custom objects you write for your own custom functions. In this video, Adam will go over everything you need to know about how to use Where-Object.