Upon running the following script file (printer.vbs), my server throws the
error below. I've verified the the UNC path to the printers is correct, and
that the files names are correct. Please help!
printer.vbs
-----------
Set WshNetwork = CreateObject("WScript.Network")
PrinterPath = "\\umbrella-hou\HP LaserJet 2100 Series"
PrinterDriver = "PrinterDriver"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
Set WshNetwork = CreateObject("WScript.Network")
PrinterPath = "\\umbrella-hou\HP OfficeJet G95"
PrinterDriver = "PrinterDriver"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
Set WshNetwork = CreateObject("WScript.Network")
PrinterPath = "\\umbrella-hou\Lanier 5455 Copier"
PrinterDriver = "PrinterDriver"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
Set WshNetwork = CreateObject("WScript.Network")
PrinterPath = "\\umbrella-hou\Fax"
PrinterDriver = "PrinterDriver"
WshNetwork.AddWindowsPrinterConnection PrinterPath, PrinterDriver
WshNetwork.SetDefaultPrinter "\\umbrella-hou\Lanier 5455 Copier"
Windows Script Host: Error
----------------------------
Script: \\UMBRELLA-HOU\NETLOGON\printers.vbs
Line: 4
Char: 1
Error: The filename, directory name, or volume label syntax is incorrect.
Code: 8007007B
Source: (null)
|