Microsoft KB Archive/159451

= INFO: Installing LPR Ports with Windows NT 4.0 Unattended Setup =

Article ID: 159451

Article Last Modified on 11/1/2006

-

APPLIES TO


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

-



This article was previously published under Q159451



SUMMARY
Although there is an option in the Unattended Setup to install TCP/IP printing, there is no option available to actually install the LPR port. To install the LPR port in an unattended method, the OEMPreinstall features of unattend must be used.



MORE INFORMATION
To install LPR ports on a system, the user must be a member of the administrator group. An advantage of installing LPR ports during an unattended setup is that the administrator is not required to log on to each workstation to install the port. A disadvantage of this procedure is that each different LPR port configuration required for the workstations will need a separate installation point on the network. Each installation point requires about 80 MB of disk space.

To install an LPR port (or ports), perform the following steps:
 * 1) Install Microsoft TCP/IP Printing on a Windows NT Workstation or Server through Control Panel, Network, Services.
 * 2) After restarting the computer, install the LPR ports with the correct IP addresses and desired names through Control Panel, Printer, File, Server Properties.
 * 3) Open Regedit.exe (not Regedt32.exe) and go to the

subkey. Under Ports, select the IP address and name of the printer you just installed. Click Registry/Export Registry File from the menu. Save it as Lpr.reg. Do this with each LPR port you have installed, making sure to give each .reg file a unique name. Close REGEDIT.
 * 1) Go to the network installation point for Windows NT. Create a subdirectory under i386 labeled $oem$. Copy Regedit.exe and the .reg files created in step 3 to this directory.
 * 2) Create a text file in the $oem$ directory using Edit.com called Cmdlines.txt. Add these lines, including quotation marks:

[Command] ".\regedit /s .\lpr.reg"

Add an additional line for each port you are installing with the appropriate .reg file name.
 * 1) Modify the Unattend.txt file using Edit.com to do an OEMPreinstall and automatically install TCP/IP protocol and TCP/IP printing.
 * 2) Run setup from the i386 directory with the following command line:

winnt /b /s: /u:

This procedure will install the LPR ports created in Step 2.

Additional Information
The example provides only part of the answer file needed for a complete Windows NT 4.0 unattended installation.

For additional information, please see the following article in the Microsoft Knowledge Base:

ARTICLE-ID: 155197

TITLE : Unattended Setup Parameters for Unattend.txt File

Additional query words: prodnt Unattended Setup Install

Keywords: kbinfo kbsbk kbsetup KB159451

-

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

© Microsoft Corporation. All rights reserved.