[Samba] installing printers

Mike Barsalou mbarsalou at aidea.org
Fri May 17 12:59:03 GMT 2002

For you Win2K folks that are using disable spoolss=yes you can use this
command below to install printers....I will try and explain some of the

rundll32 printui.dll,PrintUIEntry /if /f \\pc1\software\hp4500n\HP231Ipc.inf
/m "HP Color LaserJet 4500 PCL 5c" /r "\\pc3\hp4500n" /b "Color Printer -
Third Floor"

rundll32 printui.dll,PrintUIEntry /if /f %windir%\inf\ntprint.inf /m "HP
LaserJet 4Si MX" /r "\\pc3\laser6" /b "HP 4Si MX - Laser 6"

(NOTE: these lines are wrapped!!!)

Obviously the first entry is trying to install a HP Color LaserJet 4500
printer.  I got the /m parameter from starting to do a pretend install to a
local port, then when I got to the point of picking the printer driver...I
wrote it down and canceled the printer install.  

You must take careful note of CAPITAL letters...because case does matter.
It has to be EXACTLY like the entry that we wrote down earlier in the
pretend install.

The /f parameter is where the software is stored.  We have two "print
controllers" that control the printers in our building, pc1 and pc3.  pc1
stores the software for all of our printers that windows doesn't already
know about...the 4500 has an updated driver.

The /r parameter is the print share that is exposed through samba.

The /b parameter is the name that will show up on the workstation as the
printer name.

The second entry is trying to install a HP Laserjet 4Si MX.  We are using
the windows supplied driver.  Again, remember about CAPITAL letters.

If anyone knows of a similar way to do this for Win95/98/NT  please share
with the rest of us.


More information about the samba mailing list