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)
- The Page File (PageFile.sys) Guide for Windows 7, 8.1 and 10 - February 22, 2017
- How To Enable and Use Fetch Files Feature in OneDrive to Access All Your Files Remotely - February 21, 2017
- Speed Up Email Search for Outlook and Gmail with Email Insight App - February 20, 2017
Last updated: 08/04/2014