getting Network Interface Card(NIC) names.. question.

G

Guest

Hi,

I've got 3 Network Interface Cards(NIC) in my PC. Lets say NIC1, NIC2, NIC3.
I have openend network connections in control panel and renamed them to
Network 1, Network 2, Network 3.

I'm trying to get these names( Network 1, Network 2, Network 3) by using C#.
When I tried using Win32_NetworkAdapterConfiguration class, I could get the
names of the actual hardware(NIC1, NIC2, NIC3) but not the renamed names
(Network 1, Network 2, Network 3).

Is there any way we can get these names programmatically?
please let me know.

Cheers,

Naveen.
 
W

Willy Denoyette [MVP]

No you can't use WMI for this, the names on the UI have nothing to do with
WMI configuration data, the names are stored in the registry under
HKLM\System\Controlset001\control\network

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top