On Servers configured with multiple sockets The "Get-CimInstance -CimSession $cimSession -ClassName CIM_Processor" returns the metrics for each CPU Socket.
This results on an array for the CPU Property in the $metric variable.
Changed the query the make the average for all sockets.
On Servers configured with multiple sockets The "
Get-CimInstance -CimSession $cimSession -ClassName CIM_Processor
" returns the metrics for each CPU Socket.This results on an array for the CPU Property in the $metric variable.
Changed the query the make the average for all sockets.