[Samba] installing printer in a logon script

Kristyan Osborne kris at longhill.brighton-hove.sch.uk
Mon Nov 8 14:50:08 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> -----Original Message-----
> From: Tomasz Chmielewski [mailto:mangoo at interia.pl]
> Sent: 08 November 2004 14:40
> To: Kristyan Osborne
> Cc: samba at lists.samba.org
> Subject: Re: [Samba] installing printer in a logon script
> 
> 
> Kristyan Osborne wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > Hi,
> > 
> > Just use Kixtart. The syntax is really easy and it just works.
> > 
> > addprinterconnection("\\sambaserver\printername")
> > setdefaultprinter("\\sambaserver\printername")
> > 
> > really easy.
> 
> Maybe it's easy, but it doesn't add any printer, so it's of no use:
> 
> kixprint.kix:
> 
> addprinterconnection("\\server\HP_2000C")
> setdefaultprinter("\\server\HP_2000C")
> 
> 
> C:\KiX> c:\kixprint.kix
> 17972
> C:\KiX>
> 
> and this is all it does.
> how can you specify printer drivers to KiX? I didn't find it 
> in manual - 
> in fact - I found only these two above commands (addprinterconnection 
> and setdefaultprinter) concernig printing (and one more to 
> remove printer).
> 
You don't. As long as the drivers have been installed on the Samba server via the method mentioned in the Samba HOW-TO docs and in this list on numerous occasions. The numbers you go after the script has ran are error codes. I suggest you look these up in the Kixtart manual and see whats going wrong.

This is the setup i'm using at my site. I have a print server with about 15 printers attached and over 450 workstations map to this server everyday using the method above. It works great!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFBj4egqrr+KdRYU5gRAoyJAJ0UXx2zmePLvmvqoavAifzESaxK/ACdE4Eq
Yx3Fzq9jrTP1BNLG3k97nN4=
=5WtY
-----END PGP SIGNATURE-----



More information about the samba mailing list