PowerShell: Physical CPU count and Motherboard Manufacturer

Getting how many physical CPU sockets are in the machine:


$myArray = @()
$myArray += Get-WmiObject win32_processor
$myArray.Count

Geting the motherboard manufacturer:


Get-WmiObject win32_computersystemproduct

This returns something like this:


IdentifyingNumber : MXQXXXXXXXX
Name              : ProLiant DL360 G6
Vendor            : HP
Version           :
Caption           : Computer System Product

Advertisements