Windows command for CPU utilization % for particular service
Yes, it's possible.
This wmic command prints the CPU usage for all processes. Then you can pipe it to findstr
to filter for a particular process (using the flag /c:<process name>
).
wmic path Win32_PerfFormattedData_PerfProc_Process get Name,PercentProcessorTime
Do help findstr
and help find
from the command line to see more ways you can filter the list.
For example:
C:\> wmic path Win32_PerfFormattedData_PerfProc_Process get Name,PercentProcessorTime | findstr /i /c:chrome
chrome 24
chrome#1 0
chrome#2 0
chrome#3 0