Re: Need to list the Physical Network Adapters installed on a System
- From: Gerry Hickman <gerry666uk@xxxxxxxxxxx>
- Date: Tue, 08 Nov 2005 20:05:57 +0000
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) .
- Prev by Date: Re: Querying Folder Size with WMI.....and FireFox's Cache?!
- Next by Date: Disable/Enable Network Card
- Previous by thread: Querying Folder Size with WMI.....and FireFox's Cache?!
- Next by thread: Disable/Enable Network Card
- Index(es):
Relevant Pages
|