[Samba] installing printer in a logon script
tarjei at nu.no
Tue Nov 9 13:56:27 GMT 2004
> >But it seems to me that Windows is simply ignoring /if /f flags,
> >because it doesn't print any error (even with no /q) when I put some
> >nonsense instead of the location of the ini file.
> Well here we just have :
> rundll32 printui.dll,PrintUIEntry /in /n \\server\printer
> in a script called from the login script. It seems to work fine for
> us except for the nice feature in XP SP1 that disables users from
> installing printers - we haven't got round to pushing out a registry
> hack to fix that yet, but before SP1 went on it worked.
Hi, would you mind posting the .reg file?
> As for adding print drivers to the server, we use cupsaddsmb (as per
> the Samba howtos).
> So, we add a printer to cups, select the right PPD and put it in
> /etc/cups/ppd, then run cupsaddsmb to install the drivers. Add the
> rundll ... line to the login scripts, and next time a user logs in
> they get the printer installed (subject to the point and print policy
> in place).
> This is with samba 2.2.8a-224 and cups 1.1.15-170 (current versions
> for Suse Linux Openexchange server).
> Simon Hobson MA MIEE, Technology Specialist
> Colony Gift Corporation Limited
> Lindal in Furness, Ulverston, Cumbria, LA12 0LD
> Tel 01229 461100, Fax 01229 461101
> Registered in England No. 1499611
> Regd. Office : 100 New Bridge Street, London, EC4V 6JA.
Tarjei Huse <tarjei at nu.no>
More information about the samba