I'm use wmic command to get current CPU utilization, the command are:
wmic cpu get LoadPercentage /value
It's works fine at first, but somehow it doesn't shows the LoadPercentage, but always returns with empty result like:
C:\Users\Administrator>wmic cpu get LoadPercentage /value
LoadPercentage=
It's so weird and I'm pretty sure that the result don't match with the taskmgr.exe
. I also tried this command without /value
, the result is still the same.
I have copy a large file in my server, and the CPU usage in TaskManager and wmic is like:
no matter what value is in TaskManager, the wmic always return empty value.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With