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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: