How To Get HWID In VB.NET

Make a new project, right click on your project from solution explorer and select add reference then a window will come up now select System Management from .NET in the window.
After adding the reference go to the code and add this namespace : imports system.management now you just need to add the code that you can see below in any event, try the form load first.
    'Author : Mohamed Shimran
    'Blog : http://www.ultimateprogrammingtutorials.blogspot.com

Dim HWID As String = String.Empty
        Dim mcl As New ManagementClass("win32_processor")
        Dim MOBC As ManagementObjectCollection = mcl.GetInstances()

        For Each mob As ManagementObject In MOBC
            If HWID = "" Then
                HWID = mob.Properties("processorID").Value.ToString()
                Exit For
            End If

        Next
        MsgBox("Your HWID : " & HWID)
Debug and there you get your HWID.
your HWID is
:)

2 comments

what is HWID???
Please Elaborate

Reply

HWID means Hardware Identifier(Hardware ID)

Reply

Post a Comment