Re: Need to list the Physical Network Adapters installed on a System



An Update on this.

There are perhaps shortcuts for specific systems, but if you want to be able to detect on Windows 2000 and Windows XP including Norton Ghost builds with "fake" cards I'd query Win32_NetworkAdapter with

Manufacturer!='Microsoft' AND AdapterType='Ethernet 802.3'

this will give you a physical network card object with an index property. You can then use this index to obtain a single instance of the Win32_NetworkAdapterConfiguration class.

Gerry Hickman wrote:
Hi,

Good question!

Usually, I just check for IPEnabled = 'true' and everything works as expected, but I've recently been asked to script 1000 XP boxes, and they're showing like four Adapters, three of which are not "real". I think it's because the boxes were built with Norton Ghost and they blasted every possible NIC into the registry regardless of whether it was in the machine or not! Sigh.

Anyway, I need to try and find a solution so I'll post back if I get anywhere.

SonydreamZ wrote:
Hi All,


I need to find the list of installed physical network adapters on a system.


If I query the WMI class Win32_NetworkAdapter, it returns all the adapters including the Virtual network adapters.
<http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_networkadapter.asp>



I think the class property:- string PNPDeviceID; may help (not sure) if I look at an example value returned:


PNP Device ID: PCI\VEN_10EC&DEV_8139&SUBSYS_11BD10CF&REV_10\4&16793A72&0&60F0

But searching for specific strings like PCMCIA/PCI/ISA/EISA will be difficult as we need to list all possible strings possibel for PNP Device ID for different network adapters.
Is there any way we can get the required information?


Thanks in advance.

Reagrds,
SonydreamZ




--
Gerry Hickman (London UK)
.



Relevant Pages

  • Re: Home Networking
    ... I can see why you're not getting much connectivity. ... no network adapters or that your network adapters ... OS= Windows XP Home Edition SP1 ... Firewall= Windows Firewall ...
    (microsoft.public.win2000.networking)
  • Re: Security templates and settings in Windows XP
    ... The UID will change each time you bind and unbind the QoS Packet Scheduler from the interface. ... the appropriate binding is created in Network Adapters and given the NetCfgInstanceID for the interface referenced in the PSched parameters. ... Security templates and settings in Windows XP ...
    (Focus-Microsoft)
  • Re: Three NDIS Active sessions
    ... WinCE will support 3 network adapters at a time. ... PASSTHRU sample, which is too directly copy-pasted from Windows NT sample and ... Maxim Shatskih, Windows DDK MVP ... "Ashish" wrote in message ...
    (microsoft.public.windowsce.platbuilder)