[Samba] Printer Device Modes
Gerald (Jerry) Carter
jerry at samba.org
Tue Oct 12 18:02:11 GMT 2004
-----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-----
More information about the samba
mailing list