Retrieving type and serial number from Lenovo machines through WMI

If you need to the type and serial number of a Lenovo ThinkPad or ThinkCentre, use these two quick WMI commands:

C:\Windows\system32>wmic /node:"HOST" bios get serialnumber
SerialNumber
L3BXXXXX

C:\Windows\system32>wmic /node:"HOST" baseboard get product
Product
646065G

Replace HOST with the hostname of the machine you want to check on. The ” ” are important, so don’t leave them out.

Some other machines may use:

C:\Windows\system32>wmic /node:"HOST" computersystem get model
Product
646065G

5 Comments

  1. Victor:

    Thanks, it works fine. But how to detect if HMC card is present on the current system?

  2. dag:

    wmic bios get serialnumber
    works great for me, but it retrieves extra chars that are not whitespace appended to the end of the string. any ideas how to get rid of this?

  3. Jay:

    Works like a charm! THANK YOU!

  4. UDZ KB » Blog Archive » Lenovo Serial Number & Product Type:

    [...] http://projectdream.org/wordpress/2007/09/14/retrieving-type-and-serial-number-from-lenovo-machines-... Tags: asset management, lenovo Categories: asset management, lenovo Posted By: Josh Last [...]

  5. Dave:

    Great! Been looking for this for a while. get product doesn’t really give me meaningful output for a Lenovo desktop but the get serialnumber does. Thanks very much!

Leave a comment