MSFN Forum: PCI BUSNUMBER X, Device X, Function X - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

PCI BUSNUMBER X, Device X, Function X Rate Topic: -----

#1 User is offline   buddy 

  • Group: Members
  • Posts: 1
  • Joined: 28-May 04

Posted 05 December 2004 - 07:19 AM

Hello all,


how can i get the PCI BUSNUMBER X, Device X, Function X of networkcards
automatic to write the unattend.txt dynamicly, if I have two or more network cards?
Is there a way to do it with wmi (vbscript) or the devcon.exe utility or other reskit utility from microsoft?

I only found it in registry
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI\VEN_1039&DEV_0900&SUBSYS_0A141019&REV_90\3&61aaa01&0&18

in LocationInformation = PCI bus 0, device 3, function 0

There must be a simple way to do it?
I tried it with the following wmi class Win32_PnPSignedDriver.

bye
Buddy


#2 User is offline   ChrisBaksa 

  • Member
  • PipPip
  • Group: Members
  • Posts: 230
  • Joined: 05-March 04

Posted 06 December 2004 - 02:41 PM

I used to hard code it based on the servers I support. But that got ugly.
Now we use a custom application that breaks out all that information and writes it to a reg key in PE.

HKLM\SOFTWARE\MYDATEA\Adapter 1 - All the values I need
HKLM\SOFTWARE\MYDATEA\Adapter 2 - All the values I need
HKLM\SOFTWARE\MYDATEA\Adapter 3 - All the values I need

I just read the key i need.

Chris

#3 User is offline   captcalc 

  • Group: Members
  • Posts: 1
  • Joined: 30-September 05

Posted 30 September 2005 - 08:50 AM

I'd recommend getting the MAC Address using WMI and then using that value with the NetCardAddress Setting in the unattend.txt.

To get the Mac Address use the MacAddress property from the Win32_NetworkAdapterConfiguration object)

You can then insert this value directly into your unattend.txt like below:
NetCardAddress=00:00:00:00:00

And when you use the NetCardAddress Setting, you don't have to use the PCI Bus, Device, and Function Number settings to distinguish which card you are using. :)

Good Luck!

captcalc

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy