English

How To: Print from a UNIX client to a Windows print server using the lpr command

Summary

Steps to print from a UNIX client to a printer connected to a Windows print server using the 'lpr' command.

Procedure

Use the following steps from the print server to implement LPD passthrough on a per-printer basis.

Warning:
The instructions below include making changes to essential parts of your operating system. It is recommended that you backup your operating system and files, including the registry, before proceeding. Consult with a qualified computer systems professional, if necessary.

Esri cannot guarantee results from incorrect modifications while following these instructions; therefore, use caution and proceed at your own risk.
  1. Apply the latest Sevice Pack for your Windows operating system.
  2. Go to Start > Run and type 'regedt32' to start the Registry Editor and browse to the following registry location:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Printers\<printername>\PrinterDriverData
Note:
<printername> is the name of the printer being used.
Warning:
Be very careful not to change anything in the registry except for the entries indicated above. You can seriously compromise the integrity of your operating system by changing the wrong entries.
  1. For Windows NT Service Pack 2 or 3, go to the Edit menu, click Add Value, and then add:
    Value Name: SimulatePassThrough
    Data Type: REG_DWORD
    String: 1

    For Windows NT Service Pack 4 and above, or Windows 2000, go to the Edit menu, click Add Value, and then add the following:
    Value Name: LpdPrinterPassThrough
    Data Type: REG_DWORD
    String: 1:
  2. Stop and then restart the TCP/IP Print Server and the Spooler service.

Related Information