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

Victor:
Thanks, it works fine. But how to detect if HMC card is present on the current system?
2. November, 2007, 18:20dag:
wmic bios get serialnumber
14. April, 2008, 03:11works 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?
Jay:
Works like a charm! THANK YOU!
12. November, 2008, 19:45UDZ 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 [...]
19. February, 2009, 15:40Dave:
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!
30. July, 2009, 10:33