list of computer network interfaces

  • Thread starter Thread starter Didi
  • Start date Start date
D

Didi

Hi,
How can i get a list of the network adapters from the computer in vb.net?
example script or website?

Thanks in advance, greetz
 
Hi,

Add a reference to system.management

Dim moReturn As Management.ManagementObjectCollection

Dim moSearch As Management.ManagementObjectSearcher

Dim mo As Management.ManagementObject

moSearch = New Management.ManagementObjectSearcher("Select * from
Win32_NetworkAdapter")

moReturn = moSearch.Get

For Each mo In moReturn

Trace.WriteLine(mo("Name"))

Next



Ken
 
Back
Top