Is it possible to use some kind of netlogon script to add a printer? net use \\server\printert ??
James Coggan wrote:> Is it possible to use some kind of netlogon script to add a printer? > net use \\server\printert ?? >You can use con2prt from the Windows Zero Administration Kit to do this as part of a logon script. Cheers, Tony
Tony Whitmore wrote:> James Coggan wrote: > >> Is it possible to use some kind of netlogon script to add a printer? >> net use \\server\printert ?? >> > > You can use con2prt from the Windows Zero Administration Kit to do > this as part of a logon script.You can do it with no extra software using a rundll command. This is the exact line from one of my scripts: rundll32 printui.dll,PrintUIEntry /in /n \\fgoserv\hplj /r \\fgoserv\hplj /m "HP LaserJet 5000 Series PS " Use this command to get a help dialogue that will explain the options rundll32 printui.dll,PrintUIEntry /? -- Paul Gienger Office: 701-281-1884 Applied Engineering Inc. Cell: 701-306-6254 Information Systems Consultant Fax: 701-281-1322 URL: www.ae-solutions.com mailto:pgienger@ae-solutions.com
Just found a solution to that this morning. Here is the script I've been testing, replace ServerName and PrinterName '? VBScript.' Guy Thomas February 2004. '? http://computerperformance.co.uk '? Purpose of script to create a local printer ' ****************************** Dim net Set net = CreateObject("WScript.Network") net.AddWindowsPrinterConnection "\\ServerName\PrinterName" It appears to work really well. I found this and several other useful thing on this site http://www.computerperformance.co.uk/Logon/LogonScript_Printer.htm Hope that helps, Derek On Jul 6, 2004, at 12:41 PM, James Coggan wrote:> Is it possible to use some kind of netlogon script to add a printer? > net use \\server\printert ?? > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >The future is no place to place your better days. -- Dave Matthews Band -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 186 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20040706/2fed56e8/PGP.bin
Hi, On Tue, Jul 06, 2004 at 01:41:08PM -0300, James Coggan wrote:> Is it possible to use some kind of netlogon script to add a printer? > net use \\server\printert ??in STARTUP.CMD : rundll32 printui.dll,PrintUIEntry /in /n\\SERVER\QUEUENAME On my system I've installed CUPS driver for Windows with cupsaddsmb, and I've login once as administrator, it seems to work fine for other unpriviledged users now. hth Jerome Alet
James Coggan wrote:> Is it possible to use some kind of netlogon script to add a printer? > net use \\server\printert ?? >I would suggest a complete solution that you can also use to add drives, set registry settings. A way so you can do anything you wish in the future. Kixtart would be the best thing to use in my opinion. <http://www.kixtart.org/> We use it in a environment for +600 people, working with Win98, 2K and XP. Just take a look! Later, Mark
It can be this simple as well: RunDll32.EXE printui.dll,PrintUIEntry /in /n \\host\printer RunDll32.EXE printui.dll,PrintUIEntry /y /n \\host\printer ...the first line being "install printer" and the second "set default". ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin |$&| |__| | | |__/ | \| _| | novosirj@umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630 On Wed, 7 Jul 2004, Mark Maas wrote:> James Coggan wrote: > >> Is it possible to use some kind of netlogon script to add a printer? >> net use \\server\printert ?? >> > > I would suggest a complete solution that you can also use to add drives, set > registry settings. > > A way so you can do anything you wish in the future. Kixtart would be the > best thing to use in my opinion. > <http://www.kixtart.org/> > > We use it in a environment for +600 people, working with Win98, 2K and XP. > Just take a look! > > Later, > Mark > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >