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):
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):
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/
Latest posts by Kent Chen (see all)
- How To Disable Removable USB Storage Read, Write and Execute Access on Windows 10 - December 1, 2016
- Windows 10 Tip: How To Move System Tray to the Second Display - November 30, 2016
- How To Display The Last Logon Account Info on Windows 7 and 10 - November 29, 2016
Last updated: 08/04/2014