[Samba] Printer Device Modes

Martin Zielinski mz at seh.de
Mon Oct 11 06:41:17 GMT 2004


On Friday 08 October 2004 17:03, Ryan Suarez wrote:
> Greetings Admins,
>
> The howto details setting the device mode using a windows client:
> http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/printing.html#id
>2552900
>
> Is there a way to script this process?  We support 260+ printers and
> it's a pain in the ass.  (My wrist is hurting!)
>
> regards,
> Ryan

You don't need this for all your printers. Most printer drivers can handle the 
NULL devicemode. Mostly the HP ink printers need a devicemode to function.

I'm no admin nor windows developer. But try to google "windows command line 
printer control". You'll find info about the rundll32 PrintUI commands. 
Perhaps you can use them for your purpose (e.g. Create local printer with 
driver, store settings in file, copy settings to your samba server). This 
should also create your missing device mode.

Bye,
Martin

-- 
Martin Zielinski                       mz at seh.de
Software Development
SEH Computertechnik GmbH     www.seh.de


More information about the samba mailing list