Set WshNetwork = CreateObject(“WScript.Network”)
PrinterPath = “\\Server\Printer”
PrinterDriver = “PrinterDriver”
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
WshNetwork.SetDefaultPrinter “\\Server\Printer”

Advertisements