Hello, I have Samba 3 PDC and win2k sp4 client. I would like to install printer on a machine globally, for all users. To do this, I use: net use X: \\server\unattended /user:domain\unattended password rundll32 printui.dll,PrintUIEntry /q /y /ga /in /n \\server\HP2000C First line is mounting share (Administrator is not logged to the domain), and the second line is to install printer. Printer drivers are placed in /var/lib/samba/drivers/W32X86/HP2000C Unfortunately, this doesn't work so well: win2k complains that server, on which the printer is installed, has no matching drivers. Then I can choose "OK", which means that drivers will be installed from the local machine. So when I choose OK, win2k uses local drivers and from now on I can print from that win2k. Is it possible to get rid of that question, so that printer installation would be automatic? Either by using default win2k drivers, or these which are on Samba server. Perhaps I uploaded drivers to a wrong location? Or maybe there is some Samba setting which could point to the right driver location? Tomek
On Thursday 04 November 2004 10:32, Tomasz Chmielewski wrote:> Unfortunately, this doesn't work so well: win2k complains that server, > on which the printer is installed, has no matching drivers. Then I can > choose "OK", which means that drivers will be installed from the local > machine. So when I choose OK, win2k uses local drivers and from now on I > can print from that win2k. > > Is it possible to get rid of that question, so that printer installation > would be automatic? Either by using default win2k drivers, or these > which are on Samba server.Make a [print$] share on your server and store all printer drivers there. By the way, Kixtart (login script interpreter / language) makes it incredibly to automatically add printers. Misty
> On Thursday 04 November 2004 10:32, Tomasz Chmielewski wrote: >> Unfortunately, this doesn't work so well: win2k complains that server, >> on which the printer is installed, has no matching drivers. Then I can >> choose "OK", which means that drivers will be installed from the local >> machine. So when I choose OK, win2k uses local drivers and from now on I >> can print from that win2k. >> >> Is it possible to get rid of that question, so that printer installation >> would be automatic? Either by using default win2k drivers, or these >> which are on Samba server. > > Make a [print$] share on your server and store all printer drivers there.OK, so I did that share, put drivers to /var/lib/samba/drivers/W32X86, put them to /var/lib/samba/drivers/W32X86/HP2000C too, but despite of it, effect is still the same - win2k claims that there is no driver. Any more steps I should do? Tomek
Manuel Capinha wrote:> Connect to the server and enter the "Printers and Faxes" folder. > Right click, choose Server Properties. > Go into the Drivers tab and add the driver, just like as if it was a > Windows server. > Afterwards, select the printer and set it up to use your newly setup driver. > > All of this is explained in the manual in much more depth, off course :)hint: look at the subject (installing printer in a script). it has to be done *fully* automatically, there is no place for going there and clicking here. this is done on a freshly installed machine, which didn't even join the domain. any more ideas? Tomek
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). Tomek
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1> -----Original Message----- > From: Tomasz Chmielewski [mailto:mangoo@interia.pl] > Sent: 08 November 2004 14:40 > To: Kristyan Osborne > Cc: samba@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-----
Kristyan Osborne wrote:>>>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). >> > > > Are you sure that the printer drivers are installed properly on the samba server. NT error code 1797 is something like printer driver not found or not installed properly.No, drivers are not installed on Samba server. In fact, I don't want to install them there at all. Windows 2000 already has these drivers bundled with the system, so I'd rather use these than download these drivers from Samba server (doing so for a dial-up laptoper who has this "install printer" script over a slow dial-up connection would force him/her into downloading several megabytes of drivers that are already on the laptop, wouldn't it?). Tomek