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
Page 1 of 1
PCI BUSNUMBER X, Device X, Function X
#2
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
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
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
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



Help
Back to top









