Hi
Can some body help me out in finding out which of the macaddress is fixed and doesnot lose the value when the network adapters are diabled. I have used the following code to identify the the mac address on my system.
Dim
mc1 As System.Management.ManagementClassDim mo1 As ManagementObject
mc1 = New ManagementClass("Win32_NetworkAdapter")
Dim moc1 As ManagementObjectCollection = mc1.GetInstances()
allValues.AppendText("Win32_NetworkAdapter" & vbCrLf)
For Each mo1 In moc1
Msgbox("Adapter Type :-> " & mo1.Item("AdapterType") & vbCrLf & "MacAddress :-> " & mo1.Item("macAddress") & vbCrLf)
Next
The Result i received when i did with all ethernet and wan adapter enabled is.
Adapter Type :-> Ethernet 802.3
MacAddress :-> 00:02:3F:63:74:8B
------------------------------
Adapter Type :->
MacAddress :->
------------------------------
Adapter Type :-> Ethernet 802.3
MacAddress :-> E2:7B:AF:D8:73:8E
------------------------------
Adapter Type :->
MacAddress :->
------------------------------
Adapter Type :-> Ethernet 802.3
MacAddress :-> 00:02:3F:63:74:8B
------------------------------
Adapter Type :->
MacAddress :->
------------------------------
Adapter Type :-> Wide Area Network (WAN)
MacAddress :-> 50:50:54:50:30:30
------------------------------
Adapter Type :-> Wide Area Network (WAN)
MacAddress :-> 33:50:6F:45:30:30
------------------------------
Adapter Type :->
MacAddress :->
------------------------------
Adapter Type :->
MacAddress :->
------------------------------
Adapter Type :-> Ethernet 802.3
MacAddress :-> 34:07:20:52:41:53
------------------------------
Adapter Type :-> Ethernet 802.3
MacAddress :-> 00:04:23:59:B1:0E
------------------------------
Adapter Type :-> Ethernet 802.3
MacAddress :-> 00:04:23:59:B1:0E
------------------------------
Adapter Type :-> Ethernet 802.3
MacAddress :-> 02:00:54:55:4E:01
------------------------------
Adapter Type :->
MacAddress :->
------------------------------
The Result i received when i did with all ethernet and wan adapter disabled is:
Adapter Type :->
MacAddress :->
------------------------------
Adapter Type :->
MacAddress :->
------------------------------
Adapter Type :-> Ethernet 802.3
MacAddress :-> E2:7B:AF:D8:73:8E
------------------------------
Adapter Type :->
MacAddress :->
------------------------------
Adapter Type :->
MacAddress :->
------------------------------
Adapter Type :->
MacAddress :->
------------------------------
Adapter Type :-> Wide Area Network (WAN)
MacAddress :-> 50:50:54:50:30:30
------------------------------
Adapter Type :-> Wide Area Network (WAN)
MacAddress :-> 33:50:6F:45:30:30
------------------------------
Adapter Type :->
MacAddress :->
------------------------------
Adapter Type :->
MacAddress :->
------------------------------
Adapter Type :-> Ethernet 802.3
MacAddress :-> 34:07:20:52:41:53
------------------------------
Adapter Type :->
MacAddress :->
------------------------------
Adapter Type :->
MacAddress :->
------------------------------
Adapter Type :-> Ethernet 802.3
MacAddress :-> 02:00:54:55:4E:01
------------------------------
Adapter Type :->
MacAddress :->
------------------------------
I would like to know which mac address is know to be a fixed one and unique to each computer.
Thank You for Your Help.

Mac Address of Ethernetcard.
Whoisit
Mateus1223
Hi Peter,
I know that. but i would like to know which of the mac address should i consider while deriving a product key and also assume that each computer on which i try will have this hardware.
Thank You
Marius Onofrei
Daudi
Yifei Wu
Jonas.S
Thank You
Information Provided Has helped me a Lot.
Atheeque
Bilberry71
Art Vandolay Jr.
I Mrus
Aye this type of thing is a tough cookie and IP protection and licensing is easily worth its own course of study.
That said, comparing the two lists presented in your original post I noticed several duplicates and upon eliminating them all and comparing the enabled and disabled lists I found that only one adapter actually disppeared when they were all disabled. I cannot be certain but I suspect that adapter may have been logical, rather than physical (Win32_NetworkAdapter.PhysicalAdapter property). You should test some of these other properties on the WMI class to confirm or uncover potential patterns.
To the matter of which of the 5 would best be chosen I too am for a lack of criteria. Once again perhaps further investigation of the other properties of the NetworkAdapter class will yield some pattern of use. But ideally NICs are removable, exchangable, and replacable so I can't promise that using any NIC is unique, exclusive, immutable, and permanent for the life of the machine or OS install or combination thereof.
Basically you're building a castle on sand here, but that's life so pick one at random (or if you're funny, a combination). I would go with Ethernet rather than wireless because a built-in ethernet is more likely. However on laptops it's harder to say. Motherboard/Processor model and serial is a little less likely to change and Windows productID is maybe less still likely. HD serials might be worth looking at. I think going with Windows NT User SIDs might be a better approach as your licensing is probably user based anyway but SIDs (to my knowledge) don't change and don't carry over if the OS is reinstalled. For a machine wide setting try one of the builtin users, I'm not sure if their SIDs are machine/install unique. Probably you might look at utilizing some combination of all of the data mentioned in this post with some level of tolerance for change.
As and aside in .NET 2.0 you might want to look at the System.Net.NetworkInformation.NetworkInterface class rather than direct WMI query but obviously if you're querying multiple WMI classes System.Management is still the way to go.
Hope that helped.