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#id2552900 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
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, > RyanYou 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@seh.de Software Development SEH Computertechnik GmbH ? ? www.seh.de
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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#id2552900 | | | Is there a way to script this process? We support 260+ printers and | it's a pain in the ass. (My wrist is hurting!) There is actually. You can store default initialization data for each printer driver and then a printer will get this information assigned when it is bound to the driver. What you do is to set a printer bound to the driver in quetion to be like you want it and the send a SetPrinterData() call to set the registry value named "_p_f_a_n_t_0_m_" (type REG_BINARY) to some arbitrary value. The value doesn't really matter. This tells smbd to save a snapshot of that printer's data as the default initialization data for that driver. Then when you bind a new printer to the same driver, it will be assigned that get that initialization data. Hope this helps. cheers, jerry - --------------------------------------------------------------------- Alleviating the pain of Windows(tm) ------- http://www.samba.org GnuPG Key ----- http://www.plainjoe.org/gpg_public.asc "If we're adding to the noise, turn off this song"--Switchfoot (2003) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFBbBwiIR7qMdg1EfYRArmZAKCJYahGiTqfYh7rWQhYWDWhz0UbfwCgw6tL jKwwP26YBdixh68qTdCtDg0=nhaK -----END PGP SIGNATURE-----