We are using the below code as a logon script to connect everyone to their printers. All the printers are hosted on the same Server 2003 machine.
Recently, we decided to cut down on the time spent installing each printer every single time the user logs on. Specifically, we'd like to modify our script to check if each printer, in turn, already exists on the workstation, and skip that printer if true. I'm guessing we'll need some sort of an IF statement before each AddWindowsPrinterConnectio
n line, but unfortunately my Google efforts have turned up nothing that looks applicable to our current situation.
Thanks for your help on this!
Dim objNetwork, strUNCPrinter1, strUNCPrinter2, strUNCPrinter3, strUNCPrinter4
strUNCPrinter1 = "\\jetserve1\HP Color LaserJet 2605dn PCL6"
strUNCPrinter2 = "\\jetserve1\HPLaserJ4000"
strUNCPrinter3 = "\\jetserve1\KONICA"
strUNCPrinter4 = "\\jetserve1\Brother HL-5280DW"
Set objNetwork = CreateObject("WScript.Network")