all groups > c# > july 2005 >
You're in the

c#

group:

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


getting Network Interface Card(NIC) names.. question. Naveen Mukkelli
7/26/2005 11:21:01 PM
c#: 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.

Re: getting Network Interface Card(NIC) names.. question. Willy Denoyette [MVP]
7/27/2005 12:00:00 AM
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.

"Naveen Mukkelli" <NaveenMukkelli@discussions.microsoft.com> wrote in
message news:F5192302-B09D-41A5-B421-84D162AC8B40@microsoft.com...
[quoted text, click to view]

AddThis Social Bookmark Button