how to read motherboard number using vb 6.0
i want to read serial number of my motherboard using vb 6.0
i tried this code bt its showing result as invalid
vb Code:
Public Function MBSerialNumber() As String
'RETRIEVES SERIAL NUMBER OF MOTHERBOARD
'IF THERE IS MORE THAN ONE MOTHERBOARD, THE SERIAL
'NUMBERS WILL BE DELIMITED BY COMMAS
'YOU MUST HAVE WMI INSTALLED AND A REFERENCE TO
'Microsoft WMI Scripting Library IS REQUIRED
Dim objs As Object
Dim obj As Object
Dim WMI As Object
Dim sAns As String
Set WMI = GetObject("WinMgmts:")
Set objs = WMI.InstancesOf("Win32_BaseBoard")
For Each obj In objs
sAns = sAns & obj.SerialNumber
If sAns < objs.Count Then sAns = sAns & ","
Next
MBSerialNumber = sAns
End Function
Re: how to read motherboard number using vb 6.0
Not all motherboards have a serial number you can readily obtain. WMI is often disabled on many computers, so it's a poor choice for use in applications.
Re: how to read motherboard number using vb 6.0
what is the other alternative to get this info using Visual Basic
Re: how to read motherboard number using vb 6.0
Hi dear swells
This link (not mine but..) would be useful look it!
http://vbnet.mvps.org/index.html?cod..._baseboard.htm
#MKhP7