Skip to main content

How To 'Grep' in powershell

The rapid method:

get-process | findstr foo

The proper way:

Get-Process | Where-Object {$_ | Select-String "foo"}

Example, for display thunderbird process:

get-process | findstre "thunderbird"
Docs

How To Grep in PowerShell