Jump to content

Computer Serial Number


techtripp

Recommended Posts

  • Administrators

Note: This only works on OEM computers.

 

Why not build a plugin that gathers this information? This is fairly easy to achieve, if you want I can help you get started.

 

Also this should be in "Feature Requests".

 

I agree that tracking assets and warranties can be useful but I believe that this sort of a feature is not for everybody since not everybody has OEM computers.

Link to comment
Share on other sites

Alternatively, you could make use of a plugin named Power of the Shell http://forum.pulseway.com/topic/274-poweroftheshell-plugin-14/

 

I have copied below a script that will display the Make, Model, Serial, Chasis Type, Computer Name, Owner and Domain. Follow the instructions in the link provided. If stuck, Johnni or I can assist further.

 

 

 

# Start of Script

$info = get-wmiobject -query "Select * from win32_computersystem"

$info2 = get-wmiobject -query "Select * from win32_bios"

$z = $info2.SerialNumber

$system = Get-WMIObject -class Win32_systemenclosure
$type = $system.chassistypes
 
$a = Switch ($Type)
    {
        "1" {"Chassis : $Type - Other"}
        "2" {"Chassis : $type - Virtual Machine"}
        "3" {"Chassis : $type - Desktop"}
        "4" {"Chassis : $type - Low Profile Desktop"}
        "5" {"Chassis : $type - Pizza Box"}
        "6" {"Chassis : $type - Mini Tower"}
        "7" {"Chassis : $type - Tower"}
        "8" {"Chassis : $type - Portable"}
        "9" {"Chassis : $type - Laptop"}
        "10" {"Chassis : $type - Notebook"}
        "11" {"Chassis : $type - Handheld"}
        "12" {"Chassis : $type - Docking Station"}
        "13" {"Chassis : $type - All-in-One"}
        "14" {"Chassis : $type - Sub-Notebook"}
        "15" {"Chassis : $type - Space Saving"}
        "16" {"Chassis : $type - Lunch Box"}
        "17" {"Chassis : $type - Main System Chassis"}
        "18" {"Chassis : $type - Expansion Chassis"}
        "19" {"Chassis : $type - Sub-Chassis"}
        "20" {"Chassis : $type - Bus Expansion Chassis"}
        "21" {"Chassis : $type - Peripheral Chassis"}
        "22" {"Chassis : $type - Storage Chassis"}
        "23" {"Chassis : $type - Rack Mount Chassis"}
        "24" {"Chassis : $type - Sealed-Case PC"}
        Default {"Chassis : $type - Unknown"}
     }

"Make : " + $info.Manufacturer
"Model : " + $info.Model
"Serial : " + $z
"" + $a
"Name : " + $info.Name
"Owner : " +  $info.PrimaryOwnerName
"Domain : " + $info.Domain

# End of script

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...