[Samba] Re: Printer Device Modes

Igor Belyi sambauser at katehok.ac93.org
Thu Oct 14 17:39:04 GMT 2004


Gerald (Jerry) Carter wrote:
> -----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.

Jerry, can you cut & paste what you just said into 
Samba-HOWTO-Collection? :o)

Igor


More information about the samba mailing list