code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
| [Networking]
[NetAdapters]
Adapter01 = params.Adapter01
Adapter02 = params.Adapter02
[Params.Adapter01]
ConnectionName = "Corporate Network #1"
INFID = *
[Params.Adapter02]
ConnectionName = "Corporate Network #2"
INFID = *
[NetProtocols]
MS_TCPIP = params.MS_TCPIP
[Params.MS_TCPIP]
DNS = yes
DNSSuffixSearchOrder = myworkdns.nl
EnableLMHosts = No
AdapterSections = params.TCPIP.Adapter01,params.TCPIP.Adapter02
[params.TCPIP.Adapter01]
SpecificTo = "Adapter01"
DNSServerSearchOrder = "192.168.100.30"
DNSDomain = "myworkdns.nl"
DefaultGateway = "192.168.100.1"
DHCP = "No"
IPAddress = "192.168.100.93"
SubnetMask = "255.255.255.0"
WINS = "Yes"
WINSServerList ="192.168.100.30"
NetBiosOption = "1"
[params.TCPIP.Adapter02]
SpecificTo = "Adapter02"
DNSServerSearchOrder = "192.168.200.30"
DNSDomain = "myworkdns.nl"
DefaultGateway = "192.168.200.1"
DHCP = "No"
IPAddress = "192.168.200.93"
SubnetMask = "255.255.255.0"
WINS = "Yes"
WINSServerList ="192.168.200.30"
NetBiosOption = "0" |
Ik ben voor Windows 2003 (US geen OEM) een mooie unattended install aan het maken en het zou mooi zijn om meerdere netwerkkaarten te configureren. Voorheen deed ik het altijd maar voor één netwerkkaart maar het is uiteraard mogelijk voor meerdere netwerkkaarten.
Microsoft zegt dat als je de eerste netwerkkaart die Windows tegenkomt wil gebruiken en configureren je * kan gebruiken als INFID. Bij INFID kan je dus specificeren op PCI id etc. Een * betekend dus de eerste die Windows vind ongeacht type.
Dit gaat goed als je maar één adapter in je unattended antwoordbestand beschrijft.
Zoals je ziet heb ik nu 2 kaarten beschreven met het idee dat als Windows er 2 ziet de 2e ook gaat configureren. Voor de 2e kaart kies ik dus ook *.
Het punt is nu als ik dit doe zoals bovenstaande dat Windows beide kaarten niet meer automatisch configureerd.
Als ik;
code:
1
2
3
| [Params.Adapter02]
ConnectionName = "Corporate Network #2"
INFID = TEST |
aanpas in het bestand dan zal Windows 2003 de 1e NIC weer netjes benoemen en configureren maar de 2e uiteraard niet omdat Windows geen kaart kan vinden met het PCItag TEST.
Wat ik dus wil is dat Windows kaar 1 én kaart 2, ongeacht welke, automatisch benoemd. Klaarblijkelijk kan ik niet 2x * gebruiken als INFID.
http://support.microsoft....aspx?scid=kb;en-us;288229If only one adapter is available in the computer, you can use an asterisk for the InfID parameter (for the computer to assume that this adapter is the first network adapter).
Misschien kan het helaas niet ...
Zoekt en gij zult zelf vinden .... jammerIf InfID = *, Setup matches the first enumerated/detected network
adapter on the computer with the settings in this section. Therefore,
on a computer with a single network card, you can specify
adapter-specific entries without knowing the name or type of the
network adapter.
For computers with more than one network adapter, you must specify the
correct Plug and Play ID of each adapter. For computers with multiple
adapters of the same type (that is, the Plug and Play ID for each is
the same), you must specify the NetCardAddress or PCI location
information. If you do not specify the NetCardAddress or PCI location,
only the first adapter enumerated/detected that matches the InfID
receives the answer file entries.
Uiteraard toch mijn vraag (omdat ik nou eenmaal een topic geopend heb):
Hoe kan ik 2 NIC's automatisch configureren via een unattended script?
[ Voor 45% gewijzigd door grimson op 30-12-2004 21:35 ]
Zon opbrengst http://plugwise.grimson.nl/ | Fotomeuk