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)
- Microsoft To-Do App Available in Preview on Windows 10, iOS and Android - April 19, 2017
- Windows 10 Tip: What’s Mini View in Movies & TV App and How To Use it - April 15, 2017
- Windows 10 Tip: How To Convert MBR Partition to GPT without Losing Data - April 12, 2017
Last updated: 08/04/2014