I have multiple classrooms, each with a networked printer. I have logon scripts installing each of these printers based on the student OU, however I would like to set the default based on the computer OU (ie classroom number)
I have the following script to set the default printer
Option Explicit
Dim objNetwork, strUNCPrinter
strUNCPrinter = "\\nyci-fpsrv01\nyci-301-hp"
Set objNetwork = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection strUNCPrinter
objNetwork.SetDefaultPrinter strUNCPrinter
WScript.Quit
which works great on it's own, however when I add it to the GP of the classroom OU it does not run.
any help would be greatfull