[Samba] adding printers from netlogon script

rruegner robowarp at gmx.de
Tue Dec 9 22:24:43 GMT 2003


rundll32 printui.dll,PrintUIEntry /dn /n "\\smbpdc\bjc2000" /q #this deletes
the printer
rundll32 printui.dll,PrintUIEntry /in /n "\\smbpdc\bjc2000" #makes printer
loaded at default

will do the job for my bjc printer
----- Original Message ----- 
From: "Kurt Pfeifle" <kpfeifle at danka.de>
To: <samba at lists.samba.org>
Sent: Tuesday, December 09, 2003 10:10 PM
Subject: [Samba] adding printers from netlogon script


> > [Samba] adding printers from netlogon script
> > Andrew Gaffney agaffney at technaut.darktalker.net
> > Tue Dec 9 20:10:07 GMT 2003
> >
> >
> > While this doesn't relate specifically to Samba, I need to do this in a
netlogon .bat file
> > in a Samba domain. In my network, I have a printer hooked to a JetDirect
so that it is a
> > TCP/IP printer. Is there a way I can automatically have this printer
mapped/added when the
> > user is logged on?
> >
>
> Test this command from a "DOS box":
>
>     rundll32 printui.dll,PrintUIEntry /in /n
\\printerserver\printersharename
>
> If it works, it can go into the logon script. (Of course
"printersharename"
> needs to exist on "printerserver" and must have printer driver deposited
on
> the server's [print$]-share for "point'n'print" download...). And:
>
>     rundll32 printui.dll,PrintUIEntriy /?
>
> will show up a full "man page" (hehe...)
>
> See also
>
>     http://de.samba.org/samba/docs/man/printing.html#id2931140
>
> > -- 
> > Andrew Gaffney
> >
>
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
>



More information about the samba mailing list