473,508 Members | 4,179 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can I get the serial ID of the motherboard ?

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?
Dec 8 '05 #1
15 14904
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?

Dec 8 '05 #2
yes you can But ,,,,, i discovered that a lot of manufacturers return 000000
or xxx.xxx ( in my case i have seen this with some type of Asus
motherboards

so if this info is reliable in your situation ????

regards

Michel Posseth
"Terry Olsen" <to******@hotmail.com> schreef in bericht
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?


Dec 8 '05 #3
Roberto,

This is often asked and there is no answer, the most usable is probably the
mac address of the networkadapter.

Be however aware that this solution has give in past forever problems with
clients who are updating their system. I have seen in past at least one
major (at that time size of Microsoft) seller who don't exist anymore who
had this kind of protection in his software.

Cor
Dec 8 '05 #4
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 & "\root\cimv2")
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?


Dec 8 '05 #5
Roberto,

AFAIK is this is only working if the motherboard has a serial number, what
is as well AFAIK seldom.

Cor

"Roberto Hernández" <ro*******@newsgroups.nospam> schreef in bericht
news:up**************@TK2MSFTNGP11.phx.gbl...
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 & "\root\cimv2")
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?



Dec 8 '05 #6
The Porcessor ID is not a serial number of it, it is like the model number,
I did the following test in some computers:

0FEBFBFF00000F48 Virtual P D 2.8
BFEBFBFF00000F44 P D 2.8
BFEBFBFF00000F25 2x Xeon 2.8
BFEBFBFF00000F33 P42800
BFEBFBFF00000F33 P42800
BFEBFBFF00000F33 P42800
BFEBFBFF00000F29 P4 2800
BFEBFBFF00000F34 P4 2800
0000005500000686 P3 800
3FEBFBFF00000F12 P4 1.4
0387FBFF00000686 2x P3 933
3FEBFBFF00000F12 p4 1595Mhz
3FEBFBFF00000F12 p4 1495Mhz
3FEBFBFF00000F0A p4 1395Mhz

How can I get the mac address of the networkadapter ?

"Cor Ligthert [MVP]" <no************@planet.nl> escribió en el mensaje
news:eo*************@TK2MSFTNGP11.phx.gbl...
Roberto,

AFAIK is this is only working if the motherboard has a serial number, what
is as well AFAIK seldom.

Cor

"Roberto Hernández" <ro*******@newsgroups.nospam> schreef in bericht
news:up**************@TK2MSFTNGP11.phx.gbl...
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 & "\root\cimv2")
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?



Dec 8 '05 #7
Robert,

Your message is not new in this newsgroup

http://groups.google.com/group/micro...twork+adapter&

I hope this helps,

Cor
Dec 8 '05 #8
"Roberto Hernández" <ro*******@newsgroups.nospam> schrieb:
I develop a software and I want to protect it whit some unique ID of a
computer


You could use the machine's SID:

<URL:http://groups.google.de/group/microsoft.public.dotnet.languages.vb/browse_frm/thread/6c2803622a6bc9d2/7a4c404486381793>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 8 '05 #9
"Roberto Hernández" <ro*******@newsgroups.nospam> schrieb:
How can I get the mac address of the networkadapter ?


Mhm... My computer doesn't have a network card...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 8 '05 #10
Are you serious ?? ;-)

Michel

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
"Roberto Hernández" <ro*******@newsgroups.nospam> schrieb:
How can I get the mac address of the networkadapter ?


Mhm... My computer doesn't have a network card...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 8 '05 #11

by the way ,,,, i believe that RAS creates a virtuall mac adress if a
hardware adress is not availlable ( as TCP also needs a Mac adress to
function )
and you are connected to internet ...

so check with ipconfig / all ...


regards

"m.posseth" <mi*****@nohausystems.nl> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Are you serious ?? ;-)

Michel

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
"Roberto Hernández" <ro*******@newsgroups.nospam> schrieb:
How can I get the mac address of the networkadapter ?


Mhm... My computer doesn't have a network card...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Dec 8 '05 #12
Michel,

"m.posseth" <mi*****@nohausystems.nl> schrieb:
by the way ,,,, i believe that RAS creates a virtuall mac adress if a
hardware adress is not availlable ( as TCP also needs a Mac adress to
function )
and you are connected to internet ...


This might be true. However, not everybody running an application is
connected to the internet and/or has internet connections defined.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 8 '05 #13
Thanks.
I find a way to find the mac address of the computer running the
application:

Dim mc As System.Management.ManagementClass
Dim mo As ManagementObject
mc = New ManagementClass("Win32_NetworkAdapterConfiguration ")
Dim moc As ManagementObjectCollection = mc.GetInstances()
For Each mo In moc
If mo.Item("IPEnabled") = True Then
MsgBox ("MAC address " & mo.Item("MacAddress").ToString())
End If
Next

But I don't want to licence my aplication for each computer in a LAN, just
for the server. Then I want to know the mac addres of another known computer
(the server) whith an especific name or IP adress configured in a .ini file.

The question is: how to know the mac adress of another specific computer?

Thanks.


"Cor Ligthert [MVP]" <no************@planet.nl> escribió en el mensaje
news:u5**************@TK2MSFTNGP09.phx.gbl...
Robert,

Your message is not new in this newsgroup

http://groups.google.com/group/micro...twork+adapter&

I hope this helps,

Cor

Dec 8 '05 #14
Hi

Here is a link for your reference.
Using WMI to query remote machine adapters MAC
http://www.eggheadcafe.com/forums/Fo...=29152&INTID=2

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Dec 9 '05 #15
Herfried,
Mhm... My computer doesn't have a network card...
Therefore I wrote that long part in one of my messages in this thread.

To repeat the message I once wrote. In past there was a company who had the
best framework (windows) for the PC in that time.

They had created a system that made it unable to migrate their software once
it was installed on the PC. They were using a disktrack which was not
reachable by DOS on a IBM XT 10Mb disk. If you wanted to do a migration, you
would first have to do a deinstallation from their sofware, get a key and go
on.

However what if that PC was broken, it was an US company, with I thought no
service outside that. It was only working on an IBM XT. (Software was much
more expensive than now in that time).

http://www.old-computers.com/museum/...asp?st=1&c=286

After the time the first IBM AT where introduced (in which was a different
disk and you where at least a while after the introducion of that you were
unable to install their software to that), they disapeared. I have always
had the idea that one of the reasons was their perfect anti copying system.

http://www.old-computers.com/museum/computer.asp?c=185

Cor

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schreef in bericht
news:%2***************@TK2MSFTNGP11.phx.gbl... "Roberto Hernández" <ro*******@newsgroups.nospam> schrieb:
How can I get the mac address of the networkadapter ?


Mhm... My computer doesn't have a network card...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 9 '05 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4541
by: Mike C. | last post by:
I am trying to get Java v1.4.2 to use my PCI add-on serial port. So far, everything I try gives me javax.comm.NoSuchPortException at...
15
9626
by: tom | last post by:
Hi, How do I get the serial number of the harddisk in .NET? I want this to be the same number even if the user has reformatted, so I do not want the volume serial number. Thanx, t
2
3552
by: Job Lot | last post by:
How can I retrieve the Motherboard, hard drive, NIC Serial Number Using vb.net. thanx
79
13963
by: Klaus Bonadt | last post by:
In order to protect software from being copied without licence, I would like to use something like a key, which fits only to the current system. The serial number of the CPU or the current...
2
16127
by: Abubakar | last post by:
I have been trying to write a code that will give me the serial number of a harddrive or that of a motherboard, but i don't seem to get it right. Do anybody out there have any idea?
3
7691
by: Abubakar | last post by:
I have been trying to write a code that will enable me get the serial number of the motherboard or harddrive on a given system but no luck so far. Can any one out there help me.
3
4796
by: bayazee | last post by:
Hi, How can I get CPU Serial number , or motherboard serial number with C . I need an idetification of a computer .... ThanX --------------------------------------------------- iranian python...
4
6827
by: PBI | last post by:
I would like to know if it is possible to read, through php, the Hard Disk Serial Number or other serial number (cpu, motherboard etc... ). Thanks.
0
1499
by: Stephan Rose | last post by:
Anyone have any experience working with USB->Serial adapters?? Yes, some of us, like me, still need Serial ports!!! Drives me nuts that it is almost impossible to still get a high end motherboard...
0
7128
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7058
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5635
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1565
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
426
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.