PDA

View Full Version : Scripting Printer Install


blackride
03-07-2001, 08:34 PM
I am currently a Lan admin. I want to insert a command into the logon script that would install a printer onto the local box or so that the person can print to the port.

I did:
Net use lpt1: \\servername\share

It only works within dos. It does not appear in Windows.

Any suggestions?

Simon Clausen
03-08-2001, 03:32 AM
To do this using Windows scripting you would use the AddPrinterConnection method see http://www.winguides.com/ (http://scripting.winguides.com/reference.php?id=130>http://scripting.winguides.com/reference.php?id=130</a>)

twedlake
09-20-2001, 06:20 PM
actually you'd be better off using the
AddWindowsPrinterConnection method.