how to read motherboard number using vb 6.0-VBForums
Results 1 to 4 of 4

Thread: how to read motherboard number using vb 6.0

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2011
    Posts
    10

    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:
    1. Public Function MBSerialNumber() As String
    2. 'RETRIEVES SERIAL NUMBER OF MOTHERBOARD
    3. 'IF THERE IS MORE THAN ONE MOTHERBOARD, THE SERIAL
    4. 'NUMBERS WILL BE DELIMITED BY COMMAS
    5.  
    6. 'YOU MUST HAVE WMI INSTALLED AND A REFERENCE TO
    7. 'Microsoft WMI Scripting Library IS REQUIRED
    8.  
    9. Dim objs As Object
    10. Dim obj As Object
    11. Dim WMI As Object
    12. Dim sAns As String
    13.  
    14. Set WMI = GetObject("WinMgmts:")
    15. Set objs = WMI.InstancesOf("Win32_BaseBoard")
    16. For Each obj In objs
    17. sAns = sAns & obj.SerialNumber
    18. If sAns < objs.Count Then sAns = sAns & ","
    19. Next
    20. MBSerialNumber = sAns
    21. End Function

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Posts
    18,308

    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2011
    Posts
    10

    Re: how to read motherboard number using vb 6.0

    what is the other alternative to get this info using Visual Basic

  4. #4
    Lively Member
    Join Date
    Aug 2016
    Posts
    94

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width