Basics | Where | Foreach | -Filter


Gathers information | uses the Where-Object for filtering; the $_. allows object oriented property selection of the property "Name"; then uses a comparison operator "-like" against a string with a wildcard *



Gather the information first and then loop through in a foreach loop with a conditional IF


Filtering is a way to gather the data your require but isn't always avaialbe on all Cmdlets.
For example you cannot filter on Get-Service.

List all the CmdLets filter can be used with