Network Interface name and PCI Bus Slot numbers

J

jay

Hi,

I have two Network interface cards (On Board NICs) on my target and I use
Netsh to set the static IP address for one of the cards.
Most of the time the Network interface name "local Area Connection" which
is assigned to first NIC detected PNP is the one I want to set static IP
address and batch file in my startup works OK.

Sometimes the after PNP detection the 2nd NIC is assigned interface name
"Local Area Connection" so my startup sets static IP address for wrong
interface.

My question is
In the registry is there a way to find out PCI Bus number and slot number of
the Interface name like "Local Area Connection"?

Thanks

Regards,

Jay
 
S

Slobodan Brcin \(eMVP\)

Jay,

If I were in your position I would use API and create a simple application
that will do all configurations that I need.
You can enumerate and change things as you like in this way.

Regards,
Slobodan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top