Hi, you would be best to add printers using the con2prt.exe utility. This is a very simple utility to use via logon script and is the best way i have found of mapping printers. See: http://www.justaskjames.co.uk/default.asp?link=107 James.
-- James Yeomans, BSc, MCSE Ask me directly at: http://www.justaskjames.co.uk
"George Spiro" wrote:
[Quoted Text] > Hello, > > Wondering if someone could help me. I am having trouble with some new > workstations I am deploying and using a group policy / login script. The > problem is that I get a error that the print spooler stops and says that > my script is incorrect. I did notice that if I open the command prompt > and type Cscript its then starts working. Could someone tell me why is > this not working by default? > > This is the script: > > Dim multiPrinter, UNCpath1, UNCpath2 > UNCpath1 = "\\SRV2\A2CU01P" > UNCpath2 = "\\SRV2\C6800PCL" > UNCpath3 = "\\SRV2\A2CU03P" > Set multiPrinter = CreateObject("WScript.Network") > multiPrinter.AddWindowsPrinterConnection UNCpath1 > multiPrinter.AddWindowsPrinterConnection UNCpath2 > multiPrinter.AddWindowsPrinterConnection UNCpath3 > WScript.Quit > ' End of example VBScript > > Thank you for your help, > > George. >
|