Printing Scripts with windows Vista - TechRepublic
Question
July 17, 2007 at 09:00 AM
pv.consulting

Printing Scripts with windows Vista

by pv.consulting . Updated 18 years, 10 months ago

I have a simple logon script for all my users. It basically maps them all to their user share and their various network shares dpending on their department. i also have some printer declerations in that logon. for Windows XP pro and back, works flawlessly, however, for Vista users, it wants to add the printer driver everytime they log in. I need to modify my script to either check for already installed printers and skip over them, or to force install the driver quietly so the user sees nothing. any scripting ideas? below is my syntax. Thanks.

Option Explicit
Dim multiPrinter, UNCpath1, UNCpath2, UNCpath3, UNCpath4, UNCpath5
UNCpath1 = “\\svr-ent\sales”
UNCpath2 = “\\svr-ent\EngHr”
UNCpath3 = “\\svr-ent\production”
UNCpath4 = “\\svr-ent\colorlsr”
UNCpath5 = “\\svr-ent\engprn1”
Set multiPrinter = CreateObject(“WScript.Network”)
multiPrinter.AddWindowsPrinterConnection UNCpath1
multiPrinter.AddWindowsPrinterConnection UNCpath2
multiPrinter.AddWindowsPrinterConnection UNCpath3
multiPrinter.AddWindowsPrinterConnection UNCpath4
multiPrinter.AddWindowsPrinterConnection UNCpath5
WScript.Quit
‘ End of Script

This discussion is locked

All Comments