logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Where-Object - Filter Objects | Online Free DevTools by Hexmos

Filter objects with Where-Object on Windows. Quickly select data based on properties. Free online tool, no registration required.

where-object

Selects objects from a collection based on their property values. Note: This command can only be used through PowerShell. More information: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/where-object.

  • Filter aliases by its name:

Get-Alias | Where-Object -{{Property}} {{Name}} -{{eq}} {{name}}

  • List 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"}

  • Use multiple conditions:

Get-Module -ListAvailable | Where-Object { $_.Name -NotLike "Microsoft*" -And $_.Name -NotLike "PS*" }

See Also