Microsoft KB Archive/177267

= FIX: Unattended Setup Disables EnableDHCPFlag on Second Adapter =

Article ID: 177267

Article Last Modified on 10/31/2006

-

APPLIES TO


 * Microsoft Windows NT Server 4.0 Standard Edition
 * Microsoft Windows NT Workstation 4.0 Developer Edition

-



This article was previously published under Q177267



SYMPTOMS
When you perform an unattended installation on a system that is multihomed and the answer file (Unattend.txt) has the parameter DHCP = YES in the TCP/IP parameters section, only the first adapter will receive an IP address. The second adapter will be set to use a static IP address in which the IP address and subnet mask are blank.



CAUSE
This is caused by the EnableDHCPFlag in Oemnxptc.inf being set to 0 (zero), which means off, for the second adapter.



RESOLUTION
To work around this problem, modify the Oemnxptc.inf file on the distribution share so that it checks to see if STF_GUI_UNATTENDED is set to YES.

 On your distribution share, expand the Oemnxptc.in_ file by typing the following at the command prompt:

Expand Oemnxptc.in_ Oemnxptc.inf  Rename the compressed Oemnxptc.in_ file to Oemnxptc.sav.

This step is required because this not only offers a backup copy of the file but the setup program will always use the compressed version of the file if both are present.  Use any text editor to modify the following section of the .inf file:

Before modifications are made:

[InstallOption] set Option  = $($1) set SrcDir  = $($2) set AddCopy = $($3) set DoCopy  = $($4) set DoConfig = $($5) set InstallFromRas = $($6) set EnableDHCPFlag = $($7) set InstallList = $($8) ifstr(i) $(EnableDHCPFlag) == "" set EnableDHCPFlag = 0 Debug-Output "DHCP Phase 1 Flag :"$(EnableDHCPFlag) Debug-Output "DHCP Phase 1 Adapter :"$(EnableDHCPForThisAdapter) endif ifstr(i) $(InstallList) == "" set InstallList = {"1","1","0","0","0","0","0","0"}

After modification are made:

[InstallOption] set Option  = $($1) set SrcDir  = $($2) set AddCopy = $($3) set DoCopy  = $($4) set DoConfig = $($5) set InstallFromRas = $($6) set EnableDHCPFlag = $($7) set InstallList = $($8) ifstr(i) $(EnableDHCPFlag) == "" set EnableDHCPFlag = 0 Ifstr(i) $(!STF_GUI_UNATTENDED) == YES set EnableDHCPFlag = 1 endif Debug-Output "DHCP Phase 1 Flag :"$(EnableDHCPFlag) Debug-Output "DHCP Phase 1 Adapter :"$(EnableDHCPForThisAdapter) endif ifstr(i) $(InstallList) == "" set InstallList = {"1","1","0","0","0","0","0","0"}  Save the file and begin your unattended setup.
 * modified code begins here****************
 * Modifications end here******************



STATUS
Microsoft has confirmed this to be a problem in the Microsoft Windows NT version 4.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Additional query words: unattend two NIC Unattended Setup

Keywords: kbbug kbfix kbsbk kbsetup KB177267

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.