Finding Performance of Processes in Windows with PowerShell


The running processes listed in Task Manager provides you a detail view of how much resources are being used by each of them. Let’s take look this quick tip that uses PowerShell Get-Process cmdlet to give a more perspective view of the performance of these processes’ CPU utilization.

Get-Process cmdlet provides a quick and easy way to retrieve information about the running processes on your computer. Simply running the cmdlet on a PowerShell window with Admin rights returns something like this (Figure 1):

Figure 1 - running Get-Process cmdlet
Figure 1 – running Get-Process cmdlet

Now, let’s pipe the results to the Measure-Object cmdlet, and choose CPU property with -minimum, -maximum, and -average switches.

Get-Proecess | Measure-Object -Property CPU -minimum -maximum -average

Here is what the result is (Figure 2):

Figure 2 - Pipe Get-Proecess to Measure-Object
Figure 2 – Pipe Get-Proecess to Measure-Object

And that gives you a quick view of how many concurrent running processes are currently running on your computer, and the minimum, maximum, and average amount of CPU usage have been consumed by these processes.

/via Scripting Guy/


Please enter your comment!
Please enter your name here