I need the serial number or other device identifier (IP Address, etc,) of the. We need this because we have an application that uses the VB.net.

Imports System.Management Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim HDD_Serial, MB_serial As String Dim hdd As New ManagementObjectSearcher( 'select * from Win32_DiskDrive') For Each hd In hdd. Get HDD_Serial = hd( 'SerialNumber') Next Dim mboard As New ManagementObjectSearcher( 'select * from Win32_BaseBoard') For Each mb In mboard. Ecowater systems water softener manual Get MB_serial = mb( 'SerialNumber') Next End Sub End Class thank dear but there are errors in codes: Error 1 Type 'ManagementObjectSearcher' is not defined. C: Users Sh2007 Desktop hdd hdd Form1.vb 6 20 hdd Error 3 Statement cannot appear outside of a method body/multiline lambda. C: Users Sh2007 Desktop hdd hdd Form1.vb 9 5 hdd please help me. Private Sub Form7_Load(sender As Object, e As System.EventArgs) Handles Me.Load Dim HDD_Serial, MB_serial As String Dim hdd As New ManagementObjectSearcher( 'select * from Win32_DiskDrive') For Each hd In hdd.

Computer serial number command

Get HDD_Serial = hd( 'SerialNumber') Next Dim mboard As New ManagementObjectSearcher( 'select * from Win32_BaseBoard') For Each mb In mboard. Get MB_serial = mb( 'SerialNumber') Next MsgBox(MB_serial) End Sub Please mark those posts as answer which answers your question. Faraz thanks dear for your help but HDD_Serial is empty please check and help me .

Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click Dim Searcher_p As New ManagementObjectSearcher( 'root CIMV2', 'SELECT * FROM Win32_DiskDrive') For Each queryObj As ManagementObject In Searcher_p. Get() TextBox1.Text += (queryObj( 'SerialNumber').ToString.Trim) Next End Sub What is your main objective? What do you want to do with these serial number?

(Maybe there are better options available ) Please mark those posts as answer which answers your question. Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click Dim Searcher_p As New ManagementObjectSearcher( 'root CIMV2', 'SELECT * FROM Win32_DiskDrive') For Each queryObj As ManagementObject In Searcher_p. Get() TextBox1.Text += (queryObj( 'SerialNumber').ToString.Trim) Next End Sub What is your main objective? What do you want to do with these serial number? (Maybe there are better options available ) Please mark those posts as answer which answers your question.

Faraz thanks dear please see the picture there is an error Name of Allah, Most Gracious, Most Merciful and He created the human. Imports System.Management Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Searcher_P As New ManagementObjectSearcher( 'SELECT * FROM Win32_BaseBoard') For Each queryObj As ManagementObject In Searcher_P. Get() MsgBox(queryObj( 'SerialNumber').ToString.Trim) Next End Sub Private Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim Searcher_p As New ManagementObjectSearcher( 'root CIMV2', 'SELECT * FROM Win32_DiskDrive') For Each queryObj As ManagementObject In Searcher_p. Zawgyi font ttf download. Get() TextBox1.Text += (queryObj( 'SerialNumber').ToString.Trim) Next End Sub Private Sub Button3_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim Searcher_P As New ManagementObjectSearcher( 'SELECT * FROM Win32_PhysicalMedia') For Each queryObj As ManagementObject In Searcher_P.

Get() MsgBox(queryObj( 'SerialNumber').ToString.Trim) Next End Sub End Class Thanks Name of Allah, Most Gracious, Most Merciful and He created the human.

Dell computer serial number

Today we show you how to get computer hardware information using C#. You can get your system information like Processor Id, HDD Serial No., System MAC Address, Motherboard Manufacturer, Motherboard Product Id, CD-DVD Drive Path, BIOS Maker, BIOS Serial No., BIOS Caption, System Account Name, Physical Ram Memory, No of Ram Slot on Motherboard, CPU Manufacturer, CPU’s current clock speed, Default IP gateway, CPU Speed, Get Current Language, System Information, Processor Information, Get Computer Name. In previous articles we explained,,,,,,, and many more.