Get Motherboard Serial Number In Vb6

17.09.2019
Serial
  1. Serial Number Idm Gratis
  2. Wmic Get Motherboard Serial Number

Get mother board serial numbers and CPU IDs in Visual Basic.NET: Description: This example shows how to use WMI to get mother board serial numbers and CPU IDs in Visual Basic.NET. Keywords: serial number, cpu, cpu id, WMI, Windows Management Instrumentation, Visual Basic.NET, VB.NET.

Check motherboard serial number
P: n/a
I did modificatios to adapt to Visual Basic.Net 2003:
Public strComputer As String, objWMIService As Object, colSMBIOS As Object,
objSMBIOS As Object
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
strComputer = '.'
objWMIService = GetObject('winmgmts:' &
'{impersonationLevel=impersonate}!' & strComputer & 'rootcimv2')
colSMBIOS = objWMIService.ExecQuery ('Select * from
Win32_SystemEnclosure')
For Each objSMBIOS In colSMBIOS
lbl.Text += ('Part Number: ' & objSMBIOS.PartNumber) & vbNewLine
lbl.Text += ('Serial Number: ' & objSMBIOS.SerialNumber) & vbNewLine
lbl.Text += ('Asset Tag: ' & objSMBIOS.SMBIOSAssetTag) & vbNewLine
Next
End Sub
But it dosen't work, no error is returnet but no data also. May be the
Object type are worng but I don't know which to put on, I think is somthing
like System.Management.Instrumentation
Thanks for your help.
'Terry Olsen' <to******@hotmail.com> escribió en el mensaje
news:uM***************@TK2MSFTNGP10.phx.gbl...
Yes. Use the WMI (Windows Management Interface). Check this out...
http://msdn.microsoft.com/library/de...r_hardware.asp
'Roberto Hernández' <ro*******@newsgroups.nospam> wrote in message
news:Oc****************@TK2MSFTNGP14.phx.gbl...
I develop a software and I want to protect it whit some unique ID of a
computer
Can I get the serial ID of the motherboard?


This example shows how to get the system’s board serial numbers and CPU IDs. WMI (Windows Management Instrumentation) lets you use SQL-like statements to ask the computer about itself.

The GetBoardSerialNumbers function shown in the following code returns a list containing the mother board serial numbers.

The code uses the WMI query SELECT * FROM Win32_BaseBoard to get information about the system’s mother boards (base boards). The code loops through the resulting collection of Win32_BaseBoard ManagementObjects and adds their SerialNumber values to the result list.

The GetCpuIds function shown in the following code returns a list containing the system’s CPU IDs.

This method uses the WMI query SELECT * FROM Win32_Processor to get information about the system’s processors. The code loops through the resulting collection of Win32_Processor ManagementObjects and adds their ProcessorId values to the result list.

The following code shows how the main program displays the results in ListBoxes.

This code simply calls the two methods to get the board serial numbers and the CPU IDs. It then sets the ListBox controls’ DataSource properties equal to the returned lists of values.


Serial Number Idm Gratis

Check motherboard serial number

Wmic Get Motherboard Serial Number