PowerShell - Identifying integrated vs expansion card NICs

jagojago

Junior Member
Jun 1, 2002
18
0
0
Does anyone know if PowerShell is able to determine whether a NIC is either integrated or is an expansion slot NIC?

I'm trying to create a script that only configures IP addresses on NICs that are integrated on to the motherboard and to exclude all NICs installed on an expansion slot from being configured.

Thanks in advance.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
I'm not sure there is any easy way to do this even from the Windows API. I think you'd have to get the list of NICs and their device IDs, and then get the list of devices on the PCI bus and compare the two. There might be objects in the WMI namespaces that provide this information, so I guess I would start there. You can download something like WMI Explorer (http://www.ks-soft.net/hostmon.eng/wmi/index.htm) to play around with the objects and see what data is available.