How to get number of active processes and threads running using command-line?
10,347
Using PowerShell, the following two commands will get that information:
Number of processes running:
(Get-Process).Count
Number of threads running:
(Get-Process|Select-Object -ExpandProperty Threads).Count
Related videos on Youtube
Author by
Vinodh Gowda
Updated on September 18, 2022Comments
-
Vinodh Gowda over 1 year
I should get the number of active processes and active threads running in my server or computer using command-line.. I don't want to list all the processes or threads running, I need them in numbers.
-
Vinodh Gowda about 5 yearsThe command works perfectly on powershell but it doesn't work in cmd..Is there any specific command for cmd?
-
harrymc about 5 yearsRun it in CMD as :
powershell "(Get-Process|Select-Object -ExpandProperty Threads).Count"
.