caymanjohn
Instructor
I noted a thread about applying scripts to set printers in AD
I am in a school with 2k in a number of rooms, each with 3 printers. This is the script I use for 1 OU (a part of ROOM21 OU)
'Vb script to add printers via login script
Set WshNetwork = WSCRIPT.CreateObject("WScript.Network"
PrinterPath = "\\svrjg01\RM21A"
'PrinterDriver = "HP LaserJet 2100 Series PCL 6"
WshNetwork.AddWindowsPrinterConnection PrinterPath
PrinterPath = "\\svrjg01\RM21Colour"
'PrinterDriver = "HP 2500C Series"
WshNetwork.AddWindowsPrinterConnection PrinterPath
PrinterPath = "\\svrjg01\RM21B"
'PrinterDriver = "HP LaserJet 5P"
WshNetwork.AddWindowsPrinterConnection PrinterPath
WshNetwork.SetDefaultPrinter PrinterPath
It is applied to COMPUTER CONFIGURATION - WINDOWS SETTINGS - STARTUP SCRIPT
When a machine boots up, it runs the script, but shows an error
\\jghs,edu.ky\sysvol\jghs.edu.ky\policies\{5EE1AC4F-8DED-4546-A729-EF71EBB63596}\Machine\Scripts\Startup\Printers.vbs
Line 5
Char 1
Error System cannot find the file specified
Code 80070002
Source (Null)
Any ideas what I'm soing wrong??
Thanks
John
I am in a school with 2k in a number of rooms, each with 3 printers. This is the script I use for 1 OU (a part of ROOM21 OU)
'Vb script to add printers via login script
Set WshNetwork = WSCRIPT.CreateObject("WScript.Network"
PrinterPath = "\\svrjg01\RM21A"
'PrinterDriver = "HP LaserJet 2100 Series PCL 6"
WshNetwork.AddWindowsPrinterConnection PrinterPath
PrinterPath = "\\svrjg01\RM21Colour"
'PrinterDriver = "HP 2500C Series"
WshNetwork.AddWindowsPrinterConnection PrinterPath
PrinterPath = "\\svrjg01\RM21B"
'PrinterDriver = "HP LaserJet 5P"
WshNetwork.AddWindowsPrinterConnection PrinterPath
WshNetwork.SetDefaultPrinter PrinterPath
It is applied to COMPUTER CONFIGURATION - WINDOWS SETTINGS - STARTUP SCRIPT
When a machine boots up, it runs the script, but shows an error
\\jghs,edu.ky\sysvol\jghs.edu.ky\policies\{5EE1AC4F-8DED-4546-A729-EF71EBB63596}\Machine\Scripts\Startup\Printers.vbs
Line 5
Char 1
Error System cannot find the file specified
Code 80070002
Source (Null)
Any ideas what I'm soing wrong??
Thanks
John