We need to list #CORES per SQL Server Computer in our environment. (we have over 200 SQL Servers). This Powershell command works great for 1 computer:
Get-CimInstance -ClassName 'Win32_Processor' | Select-Object -Property 'DeviceID',
Get-CimInstance -ClassName 'Win32_Processor' | Select-Object -Property 'DeviceID',