Get CPU Usage from Windows Command Prompt

Mike picture Mike · Feb 1, 2012 · Viewed 203.6k times · Source

How would I get total CPU Usage from Windows Command Prompt?:

Expected Output:

27%

Answer

Alex K. picture Alex K. · Feb 1, 2012
C:\> wmic cpu get loadpercentage
LoadPercentage
0

Or

C:\> @for /f "skip=1" %p in ('wmic cpu get loadpercentage') do @echo %p%
4%