Jun 22 2019 10:12 AM
Hello friends
I want to check the percentage of use of Windows Server 2019 Server processors.
I tried to use the query I was doing with Windows Server 2012, but it returns me the empty value.
Could anyone know how I can do this in Windows Server 2019?
Jun 24 2019 12:36 AM
@erickgomes Your command does not appear to work, neither on Windows 10 nor Windows Server 2019. Try this one instead:
Get-WmiObject -class win32_processor | Measure-Object -property LoadPercentage -Average | Select-Object -ExpandProperty Average
Jun 24 2019 07:50 AM
Jun 24 2019 01:50 PM
Solution
friends,
I got it with the simple code below
wmic cpu get loadpercentage
If anyone else needs it.
Thank you all for the attention!
Jun 27 2019 09:05 AM - edited Jun 27 2019 09:09 AM
Use Get-CimInstance instead:
(Get-CimInstance -Class Win32_Processor).LoadPercentage
Jun 27 2019 09:06 AM - edited Jun 27 2019 09:09 AM
May 07 2020 05:14 AM
@erickgomes I'm facing the same error. Win32_Processor is not displaying any results for CPU load percentage.