[Samba] installing printer in a logon script

Tomasz Chmielewski mangoo at interia.pl
Thu Nov 4 15:32:46 GMT 2004


Hello,

I have Samba 3 PDC and win2k sp4 client.

I would like to install printer on a machine globally, for all users.

To do this, I use:


net use X: \\server\unattended /user:domain\unattended password

rundll32 printui.dll,PrintUIEntry /q /y /ga /in /n \\server\HP2000C


First line is mounting share (Administrator is not logged to the 
domain), and the second line is to install printer.

Printer drivers are placed in /var/lib/samba/drivers/W32X86/HP2000C


Unfortunately, this doesn't work so well: win2k complains that server, 
on which the printer is installed, has no matching drivers. Then I can 
choose "OK", which means that drivers will be installed from the local 
machine. So when I choose OK, win2k uses local drivers and from now on I 
can print from that win2k.

Is it possible to get rid of that question, so that printer installation 
would be automatic? Either by using default win2k drivers, or these 
which are on Samba server.


Perhaps I uploaded drivers to a wrong location?
Or maybe there is some Samba setting which could point to the right 
driver location?

Tomek



More information about the samba mailing list