July 5th, 2013

PowerTip: Use PowerShell to Find Performance of Processes

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to quickly find the performance of process CPU utilization.

Hey, Scripting Guy! Question How can I quickly and easily find the minimum, maximum, and average CPU utilization by various processes?

Hey, Scripting Guy! Answer Open Windows PowerShell with Admin rights. Use the Get-Process cmdlet, pipe the results to the Measure-Object cmdlet, choose the CPU property, and use the –Minimum-Maximum, and –Average switches:

Get-Process | Measure-Object -Property cpu -Minimum -Maximum -Average

 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.