Computer Serial Number

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Some of the bigger name band computers have serial numbers written in the
bios, is there a WMI Win32 class that can retrieve that serial number?
 
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_BIOS",,48)
For Each objItem In colItems
strBIOSTypeAndVersion = objItem.Caption
strManufacturer = objItem.Manufacturer
strServiceTagNumber = objItem.SerialNumber
Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top