thanks for the reply i have already got the serial number but every hp product has the product number and serial number. I need to get the product number
Main Topics
Browse All TopicsI am looking for a way to get product number from hp desktop using wmi. i already using a script to get all the other datas but not able to get the product number alone.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Win32_BIOS",,48)
For Each objItem in colItems
Wscript.Echo "-------------------------
Wscript.Echo "Win32_BIOS instance"
Wscript.Echo "-------------------------
If isNull(objItem.BIOSVersion
Wscript.Echo "BIOSVersion: "
Else
Wscript.Echo "BIOSVersion: " & Join(objItem.BIOSVersion, ",")
End If
Wscript.Echo "BuildNumber: " & objItem.BuildNumber
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "CodeSet: " & objItem.CodeSet
Wscript.Echo "CurrentLanguage: " & objItem.CurrentLanguage
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "IdentificationCode: " & objItem.IdentificationCode
Wscript.Echo "InstallableLanguages: " & objItem.InstallableLanguag
Wscript.Echo "InstallDate: " & objItem.InstallDate
Wscript.Echo "LanguageEdition: " & objItem.LanguageEdition
If isNull(objItem.ListOfLangu
Wscript.Echo "ListOfLanguages: "
Else
Wscript.Echo "ListOfLanguages: " & Join(objItem.ListOfLanguag
End If
Wscript.Echo "Manufacturer: " & objItem.Manufacturer
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "OtherTargetOS: " & objItem.OtherTargetOS
Wscript.Echo "PrimaryBIOS: " & objItem.PrimaryBIOS
Wscript.Echo "ReleaseDate: " & objItem.ReleaseDate
Wscript.Echo "SerialNumber: " & objItem.SerialNumber
Wscript.Echo "SMBIOSBIOSVersion: " & objItem.SMBIOSBIOSVersion
Wscript.Echo "SMBIOSMajorVersion: " & objItem.SMBIOSMajorVersion
Wscript.Echo "SMBIOSMinorVersion: " & objItem.SMBIOSMinorVersion
Wscript.Echo "SMBIOSPresent: " & objItem.SMBIOSPresent
Wscript.Echo "SoftwareElementID: " & objItem.SoftwareElementID
Wscript.Echo "SoftwareElementState: " & objItem.SoftwareElementSta
Wscript.Echo "Status: " & objItem.Status
Wscript.Echo "TargetOperatingSystem: " & objItem.TargetOperatingSys
Wscript.Echo "Version: " & objItem.Version
Next
Business Accounts
Answer for Membership
by: xuserx2000Posted on 2009-01-05 at 20:49:53ID: 23301963
Are you talking about the serial number of the mainboard ?
---------- " ---------- "
That is the unique id of your hardware. It is used by windows setup for a default name of your computer during the setup process.
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Win32_BIOS",,48)
For Each objItem in colItems
Wscript.Echo "-------------------------
Wscript.Echo "Win32_BIOS instance"
Wscript.Echo "-------------------------
Wscript.Echo "SerialNumber: " & objItem.SerialNumber
Next