PowerTip: Find Processes with Process ID Less Than 1000

ScriptingGuy1

Summary: Use Windows PowerShell to find processes with a process ID that is less than 1000.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find all processes that have a process ID less than 1000?

Hey, Scripting Guy! Answer Use the Get-Process cmdlet, pipe the resulting objects to the Select-Object cmdlet, choose the process name,
          and create a custom property that displays True if the process ID is less than 1000:

Get-Process | select name, @{L='Pid below 1000';E={$_.pid -lt 1000}}

0 comments

Discussion is closed.

Feedback usabilla icon