I understand that this is an answer for a necro post. But as I can't see any correct answer here, the solution is lodctr /R . This command will reload counters. Must use a capital R, lower case 'r' returns an error. Remember Admin Privs as well.

Answer from Sergii Kirichok on Stack Overflow
🌐
Server Fault
serverfault.com › questions › 1052740 › get-cpu-load-percentage-on-windows-2008r2-server-wmic-doesnt-work
cpu usage - Get CPU load percentage on Windows 2008r2 Server - WMIC doesn't work? - Server Fault
February 7, 2021 - I found the command wmic cpu get LoadPercentage was recommended as a way to get a CPU load estimate from a command line. It works as expected from a Windows 10 system: c:\>wmic cpu get LoadPerc...
Discussions

Faster way to get % CPU load?
The contents of that batch file calls "wmic cpu get loadpercentage". I've also tried calling "powershell Get-Counter '\Processor(_Total)\% Processor Time'". More on reddit.com
🌐 r/Batch
1
4
November 4, 2022
batch file - Windows command for CPU utilization % for particular service - Stack Overflow
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 ge... More on stackoverflow.com
🌐 stackoverflow.com
Command prompt diffrent from task manager.
In command prompt, if I use the command wmic cpu get loadpercentage i get a cpu usage of around 1-10&. in task manager, its about 50% usage. Why are these diffrent, and how can i sync/fix them. In command prompt it also says I have a diffrent… More on learn.microsoft.com
🌐 learn.microsoft.com
6
0
July 23, 2024
How to get the CPU workload via a call executable
Hi everyone, i want to get the cpu workload of my PC with this command: "wmic cpu get loadpercentage /value" If i copy this command in my cmd, i get this response: This would be good because i can work with it But if i place the same command in my call executable: Then i get this informati... More on forums.ni.com
🌐 forums.ni.com
1
0
August 9, 2023
🌐
Teckadmin
teckadmin.wordpress.com › 2014 › 05 › 23 › cpu-checks-in-windows-commandline
CPU checks in windows-commandline | Teckadmin
May 23, 2014 - LOad % every 5 sec —————— C:\>wmic cpu get loadpercentage /every:5 LoadPercentage 3 LoadPercentage 3 LoadPercentage 10
🌐
Wordpress
itworldjd.wordpress.com › 2016 › 05 › 05 › command-line-100-cpu-on-windows
Command line to check 100% CPU on Windows ? – Jacques Dalbera's IT world
May 9, 2016 - CPU load: c:\>wmic cpu get loadpercentage LoadPercentage · C:\>wmic cpu get loadpercentage /every:5 LoadPercentage 3 LoadPercentage 3 LoadPercentage 10 · or · C:\>@for /f “skip=1″ %p in (‘wmic cpu get loadpercentage’) do @echo %p% ...
🌐
Blogger
quickbytesstuff.blogspot.com › 2020 › 04 › wmic-command-get-cpu-load-percentage.html
WMIC command get CPU Load Percentage
Here’s the wmic command line which check the CPU Load Percentage. Sample output: Availability CpuStatus CurrentVoltage DeviceID ErrorCleared · 3 1 9 CPU0 · ErrorDescription LastErrorCode LoadPercentage Status StatusInfo · 15 OK 3 · The command can be used to monitor remote servers or computers to check the load percentage and just save the output to a text file for review or monitoring purposes.
🌐
Reddit
reddit.com › r/batch › faster way to get % cpu load?
r/Batch on Reddit: Faster way to get % CPU load?
November 4, 2022 - The contents of that batch file calls "wmic cpu get loadpercentage". I've also tried calling "powershell Get-Counter '\Processor(_Total)\% Processor Time'".
Find elsewhere
🌐
4iT
4it.com.au › knowledge base › how to check the cpu load percentage using the command prompt
How to Check the CPU Load Percentage using the Command Prompt | 4iT
Type the following in to the command prompt to check the CPU Load Percentage wmic cpu get loadpercentage Please note: This is a “QUICK SUPPORT” article. The information contained herein is provided as is. As a result of the speed in making it available, the materials may include typographical ...
🌐
MS.Codes
ms.codes › blogs › computer-hardware › batch-script-to-get-cpu-and-memory-usage
Batch Script To Get CPU And Memory Usage
February 14, 2024 - FOR /F "skip=1" %%P IN ('WMIC CPU GET LoadPercentage') DO ( SET "CPU=%%P" REM skip empty results IF NOT "!CPU!"=="" ( REM remove percentage sign SET "CPU=!CPU:~0,-1!" REM perform desired actions with CPU usage value ) )
🌐
MS.Codes
ms.codes › blogs › computer-hardware › command-to-check-cpu-utilization-in-windows
Command To Check CPU Utilization In Windows
February 14, 2024 - In summary, the commands "tasklist" and "wmic cpu get loadpercentage" can be used to quickly check CPU utilization in Windows, while the Performance Monitor provides more detailed real-time information.
🌐
Reddit
reddit.com › r/powershell › get-wmiobject win32_processor returns load percentage inconsistent with task manager
r/PowerShell on Reddit: Get-WmiObject win32_processor Returns Load Percentage Inconsistent with Task Manager
February 18, 2019 -

I have a server (Virtual Machine, Server 2016, Powershell 5.1, AMD EPYC 7351P 16-Core Processor on hardware, 32 cores assigned to this VM) we had to strip our normal monitoring software off of because of an issue with the CPU hitting 100% load for extended periods. I had planned on sending myself a text with the following anytime it hits max load:

Get-WmiObject win32_processor |
Select-Object -ExpandProperty LoadPercentage

However, this seems to return a number significantly different from task manager CPU utilization. I have this checking every half a second and sometimes it returns 1% load when task manager shows 8%. Other times the reverse is true. As a result, I'm receiving quite a few false positive texts. Why are these not the same all the time?

Edit:

This is the solution I settled on:

$samples = @()
For ($i=0; $i -le 10; $i++) {
    $proccounter = get-counter '\Processor(*)\% Processor Time'
    $samples += ($proccounter.CounterSamples | Where-Object {$_.InstanceName -eq "_total"}).CookedValue
}

#Output for testing:
$samples
$averagesample = Average($samples)
Write-Host "Average is $averagesample"

Sample Output:

1.46596744729707
2.3439746088584
1.61247038039147
1.12405830222021
1.51394453355583
1.08410658274314
0.440871288980338
1.51369856239596
4.34909604200011
1.80681986536814
1.41617759249809
Average is 1.6973804733008

Now I just need to test and see how accurate this is, but I expect it will be much more accurate.

Thanks to u/tysonedwards for telling me about counters.

🌐
Google Sites
sites.google.com › site › prtghowto › sensor-archive › wmic-cpu
WMI CPU Load - Custom sensors for PRTG
An introduction to writing your own custom EXE/Script Advanced sensors for PRTG Network Monitor.