SUMMARY2: Remore printer setup

From: Runde, Aline (
Date: Tue May 26 1998 - 13:05:39 CDT

Thanks to Neil Thyer, I can now print postcript and html files from the
Sun to the HP printer on WindowsNT.
I've also tried the command: lpadmin -p printername -T ps -I postscript
as some managers suggested
but this still printed out garbage.
This 2nd summary includes the extra step to set up on the Windows NT end
sent to me by Neil Thyer.
The procedure was for Windows NT 3.51 but it worked also for my Windows
NT 4.0

From: Neil Thyer[]

When setting up remote printers for Unix to NT I have also found that
if you format output into postscript/pcl whatever, that you will have
with double formatting on the output once passed to the NT box.

I have found that on the NT box to stop this you need to create/modify
a registry called "simulatepassthrough". This allows the data to be
as raw by NT and passed directly to the printer.

Configuring SimulatePassThrough In Windows NT 3.51
In Windows NT 3.51 the code looks for a registry setting in the LPD key
instead of the LPDSVC key. You can work around this problem by creating
LPD key at the same level as the LPDSVC key and then duplicating the
information in the LPDSVC key to the LPD key.
For Windows NT 3.51 to assign the RAW datatype, regardless of the
control file contents, do the following:
WARNING: Using Registry Editor incorrectly can cause serious, system-
wide problems that may require you to reinstall Windows NT to correct
them. Microsoft cannot guarantee that any problems resulting from the
use of Registry Editor can be solved. Use this tool at your own risk.
 1. Run Registry Editor (REGEDT32.EXE).
 2. From the HKEY_LOCAL_MACHINE subtree, go to the following key:
 3. On the Edit menu, click Add Value.
 4. Add the following:
       Value Name: SimulatePassThrough
       Data Type: REG_DWORD
       Data: 1
    NOTE: The default value is 0, which informs LPD to assign datatypes
    according to the control commands.
 5. To work around the problem mentioned above, create an LPD key at
    the same level of the LPDSVC key.
 6. Click the LPDSVC Key, click Save Key from the Registry menu, and
    save the file as LPDSVC.KEY.
 7. Click the LPD key created in step 5.
 8. Click Restore on the Registry menu, click the file created in step
    and then click OK.
 9. A warning message appears. Click OK and then quit Registry Editor.
10. At a command prompt, type:
       net stop lpdsvc
11. At a command prompt, type:
       net start lpdsvc


-- 							|  |  |  |  |  |
Neil Thyer 						|M |I |N |C |O |M
Unix Systems Administrator
+61 07 3364 9719

------------------------------------------------------------------------ ------------------------------------------------------------------------ ---------------------------

> Original message: > > >Dear Sun Managers, > > > >We have a HP LasetJet 6MP printer that is connected to a WinNT machine > >which is the print server. I would like to be able to print from my > >Sun Ultra-1 to that printer on WinNT. I have added the PC ip to the > >hosts file and hosts.lpd file on my Ultra-1, using > >admintool to add remote printer but I kept getting failed... error > >message. > >Do I need any software to get it to work? Your help is very much > >appreciated. > > > >Thanks, Aline... > > > > Some suggested Samba, but I used the solution suggested by Alex Goodson, > Ramnish Singh and Amjad Zamil that required no additional software. > Thanks again guys. > > Setup printer commands on SUN: > > 1. Add NTserver ip address to the hosts file. > 2. lpsystem -tbsd NTservername > 3. lpadmin -Pprintername -sNTservername!printername > 4. accept printername > 5. enable printername > > Setup on WinNT server: > > 1. Check that TCP/IP printing services is installed and running. > 2. Check that the printer is shared. > 3. Extra step that I did suggested in WinNT Help file on lpdsvc to > declare the HP > printername as a null share. I modified the registry to add the HP > printername > to the NullSessionShares line under: > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Par > ameters > 4. Reboot WinNT. > > The printer works great with the above setup. > Still one issue remains that I need to spend some more time to > investigate: text or ascii files are printed out OK, but I got garbage > printouts when printing .ps or .html files. > Any hints or suggestions to this problem? > > Aline...

Aline Runde Unix System Administrator MicroModule Systems, Inc. (408) 864-5934 (Voice) (408) 864-5950 (Fax) (E-Mail)

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:40 CDT