Is there any way to get CPU utilization for particular service from a script on Windows? I know wmic cpu get LoadPercentage will give CPU utilization for the entire system, but is it possible to get it for a particular program like winword.exe?
Is there any way to get CPU utilization for particular service from a script
Share
Yes, it’s possible.
This wmic command prints the CPU usage for all processes. Then you can pipe it to
findstrto filter for a particular process (using the flag/c:<process name>).Do
help findstrandhelp findfrom the command line to see more ways you can filter the list.For example: