• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Installing a printer using WSH

W

wuzzle

#1
Hello, I am using a script to install printers but I get a strange
error message

Set WshNetwork = WScript.CreateObject("WScript.Network")

PrinterPath = "\\server1\sharedName_hp1"

WshNetwork.AddWindowsPrinterConnection PrinterPath
WshNetwork.SetDefaultPrinter PrinterPath

When the user logs on for the the first time the receive an error
message

Script (points to GPO where script resides)
Line: 6
Char: 3
Error: "There is no printer called "\\server1\sharedNane_hp1"
Code: 800200009
Source: WSHNetwork.SetDefaultPrinter

The print devices seems to install because it shows up in the printer
and fax list on the remote computers.

Thanks ahead of time
 

My Computer

Users Who Are Viewing This Thread (Users: 1, Guests: 0)