Quickly get machine model, BIOS version and serial number/ service tag

I knocked this up just to make it easier to get the model, BIOS versions and serial numbers/ service tags (only tested against Dell machines so far). I haven’t commented it because hopefully the variable names are evident enough.

$computerDetails=Get-WmiObject -Class Win32_ComputerSystem
$BIOSDetails=Get-WmiObject -Class Win32_BIOS
Clear-Host
Write-Host “The model is” $computerDetails.Manufacturer,$computerDetails.Model
Write-Host “With BIOS version” $BIOSDetails.SMBIOSBIOSVersion “and Serial number” $BIOSDetails.SerialNumber

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