where-object
Select objects from a collection based on their property values. tldr-pages
On Windows
Windows
Select objects from a collection based on their property values. Note: This command can only be used through PowerShell.
Filter aliases by its name
Get-Alias | Where-Object -Property Name -eq nameIdentifyList all services that are currently stopped. The $_ automatic variable represents each object that is passed to the Where-Object cmdlet
Get-Service | Where-Object {$_.Status -eq "Stopped"}IdentifyUse multiple conditions
Get-Module -ListAvailable | Where-Object { $_.Name -NotLike "Microsoft*" -And $_.Name -NotLike "PS*" }Identify