Primary and Secondary WINS Servers in Unattended Setup (141300)
The information in this article applies to:
- Microsoft Windows NT Workstation 3.5
- Microsoft Windows NT Workstation 3.51
- Microsoft Windows NT Server 3.5
- Microsoft Windows NT Server 3.51
This article was previously published under Q141300 SUMMARY
Only some of the TCP/IP protocol parameters can be defined at setup time in
unattended setup. Neither the unattend text file nor the IPINFO.INF file
allow the user to specify the WINS primary and secondary server IP
addresses.
The IP address, subnet mask and default gateway can be specified in
IPINFO.INF. Changing WINS primary and secondary servers IP addresses can
only be done by editing the TCP/IP setup script file OEMNXPTC.INF.
WORKAROUND
WARNING: Modification of INF files can cause serious, system-wide
problems before and after Setup and may require you to reinstall Windows
NT to correct them. Microsoft cannot guarantee that any problems
resulting from the modification of INF files can be solved. Make INF
modifications at your own risk.
To resolve the problem, modify IPINFO.INF and OEMNXPTC.INF. This solution
has several limitations: it sets the same WINS primary and secondary
servers IP addresses for all network adapters, therefore it is not very
adapted for a multiple network adapters setup. On the other hand, after
Setup it is impossible to reset the two WINS servers IP addresses to none.
In this case, restore the CD-ROM OEMNXPTC.INF in %SystemRoot%\System32
after setup.
- Copy the \I386 directory from the Windows NT compact disc to your hard
drive.
- Run expand -r OEMNXPTC.INF on your hard disk
- Run del OEMNXPTC.INF
- Modify the IPINFO.INF file to include the appropriate static IP values
in the [DefaultIPInfo] section. For additional information on how to do
this, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: 135463
TITLE : IPINFO.INF Values Ignored During Setup
- In OEMNXPTC.INF, search for the [InstallOptions] heading to find the
following problem code fragment:
ifstr(i) $(!STF_GUI_UNATTENDED) == YES
set EnableDHCPFlag = 1
endif
ifstr(i) $(EnableDHCPFlag) == ""
set EnableDHCPFlag = 0
endif
This problem is referenced in the following Microsoft Knowledge Base
Article:
ARTICLE-ID: 133337
TITLE : Automate Setup to Configure TCP/IP for Static Addressing
Fails
- In OEMNXPTC.INF, search for the following lines:
ForListDo $(OldCardList)
ifstr(i) $(CardServiceKey) == ""
ifstr $(CardList) == ""
set CardList = $($)
else
set CardList = $(CardList)"@"$($)
endif
debug-output "Doing:"$($)
debug-output $(CardList)
set DefaultIPAddress = *($(IPAddressList),$(CardCount))
set DefaultSubnetMask = *($(SubnetMaskList),$(CardCount))
- Add the following lines right after the previous lines (Change first
the NameServer and NameServerBackup IP addresses below with the
appropriate IP addresses. A + indicates that the current line and the
next line is one complete line):
Debug-Output "OEMNXPTC.INF: Open netbtkey "$($)
OpenRegKey $(!REG_H_LOCAL) "" +
"System\CurrentControlSet\Services\NetBT\Adapters\"$($) +
$(MAXIMUM_ALLOWED) WinsParamKey
ifstr(i) $(WinsParamKey) != ""
EnumRegValue $(WinsParamKey) WinsList
QueryListSize WinsListSize $(WinsList)
Debug-Output "OEMNXPTC.INF: Wins list size = "$(WinsListSize)
ifint $(WinsListSize) != 0
; Value of NameServer : *(*($(WinsList),1),4)
ifstr(i) *(*($(WinsList),1),4) != ""
goto nowinsadd
endif
endif
set NewValueList = +
{{NameServer,$(NoTitle),$(!REG_VT_SZ),"135.135.2.8"},+
{NameServerBackup,$(NoTitle),$(!REG_VT_SZ),"135.135.7.1"}+
}
Shell $(UtilityInf), AddValueList, $(WinsParamKey) , +
$(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMNXPTC.INF: ShellCode error: cannot write
wins servers addresses."
goto ShellCodeError
endif
nowinsadd = +
CloseRegKey $(WinsParamKey)
endif
- To make use of the changes you have made, run Setup from the directory
on your hard drive.
Modification Type: | Major | Last Reviewed: | 12/16/2003 |
---|
Keywords: | KB141300 |
---|
|