CPU Load Percentage PowerShell Windows Server 2019

New Contributor

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?



6 Replies

@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

Hy @Jon Alfred Smith, thanks for answering.



Also does not work :(



best response confirmed by erickgomes (New Contributor)




I got it with the simple code below


wmic cpu get loadpercentage



If anyone else needs it.


Thank you all for the attention!


@Jon Alfred Smith


Use Get-CimInstance instead:


(Get-CimInstance -Class Win32_Processor).LoadPercentage




(Get-CimInstance -Class Win32_Processor).LoadPercentage



@erickgomes I'm facing the same error. Win32_Processor is not displaying any results for CPU load percentage.