How to get MotherBoard ID in vb codes

I like to get MotherBoard ID in visual basic 6.0 code. Please any one can help... I am very interested in VB..
Thank You,
Supun
[140 byte] By [supun24] at [2007-11-20 0:36:11]
# 1 Re: How to get MotherBoard ID in vb codes
Assuming WMI is installed and the motherboard gives access to this information, you can get all kinds of information about the motherboard. 'Requires a reference to the Microsoft WMI Scripting Library
Private Sub MBInfo()

Dim oSet As SWbemObjectSet, oItem As SWbemObject

Set oSet = GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf("Win32_BaseBoard")

On Error Resume Next

For Each oItem In oSet
With oItem
Debug.Print .Description
Debug.Print .InstallDate
Debug.Print .PartNumber
Debug.Print .Product
Debug.Print .SerialNumber
Debug.Print .Version
Debug.Print .Manufacturer
Debug.Print .Model
Debug.Print .Name
Debug.Print .OtherIdentifyingInfo
Debug.Print .Caption
Debug.Print .SKU
End With
Next oItem

End Sub
Comintern at 2007-11-9 19:57:13 >