Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 17778

PowerTip: Find Processes with Process ID Less Than 1000

$
0
0

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}}


Viewing all articles
Browse latest Browse all 17778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>