Discussion Locked

Install Printers with batch file

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Dear Coleagues,
I use to place the following batch file(start \\printservername\printersharename) for my users to enable install any network printer they may choose. But running this kid of batch file brings a prompt where you have to select yes before the printer is installed. I was wonering if there's a switch I could incorporate into this batch file to automatically answer yes to the prompt and for the batch file to run in silent mode.

Thanks

3 replies

by p.j.hutchison

Best using VBS for login scripts and use something like:

set wshnet = CreateObject("WScript.Network")
wshnet.AddWindowsPrinterConnection "\\server\printershare"

This discussion is closed to new replies.