I am trying to check the Average CPU Load by using:
$ $($(Get-WmiObject win32_processor | select LoadPercentage).LoadPercentage) | Measure-Object -Average).Average
However, I am not how exactly it gets the number...
If there are 2 physical cores and 12 cores in each, does LoadPercentage returns average per Cpu, that is average per core?
This is from my 1 CPU-socket computer. That + the quote from
Win32_Processor
documentation from MSDN below shows that it is the average percentage for the CPU (socket).So your script will calculate the average CPU-load for the server (average for all processors, not individual cores).
Source: MSDN