ProtekNickz
Well-known member
Hi, i new here so be gentle lol, Im trying to Get the mac of the local computer(s) on a network and Enable/Disable the Connectiong adapter that is UP (In use), i know i can do this with the system as it stands and for a while i've used a *.bat file to do this for me but not i want a more elabrate way of doing it using a program i make for this, i will also be making it Control other computers remote on my network the same with a simple server side, in the future!, i just need it to Work on the local computer, I've read up about diffrent ways of doing this, like Getting the MAC via Registry like so:
but from what i gather, i have tried this program on another pc with a test app that it wouldnt get the MAC as the Registry string can be placed in a diffrent location, How would i get program to find the string for each pc's MAC, i know this maybe easy for some of you's but i haven't really messed with registry programming,
Also to disable and enable the Network Adapter which is selected via a Listview or combobox select accompanied by a button,
Thanks in advance
p's if im unclear at all please ask
VB.NET:
My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{0000000000-0000-0000-BFC1-00000000000}\0008\", "NetworkAddress", "0")
but from what i gather, i have tried this program on another pc with a test app that it wouldnt get the MAC as the Registry string can be placed in a diffrent location, How would i get program to find the string for each pc's MAC, i know this maybe easy for some of you's but i haven't really messed with registry programming,
Also to disable and enable the Network Adapter which is selected via a Listview or combobox select accompanied by a button,
Thanks in advance
p's if im unclear at all please ask