J
Jeniffer K
Dear NG, I'm facing the following scenario
I've setup a network in a school that has over 700 students that will all
use the newly created computer labs, we have about 7-8 labs and 2 public
libraries, one of the things I need to accomplish is to simplify the printer
creation process, the problem is that the same user will move around from
lab to lab and of course the public library's we have different printers
setup all over the place, I was thinking of setting up scripts based on the
computer so no mater where the user logs on they will get the correct
printer automatically created for them and set as the default, I have
created a procedure but its not working perhaps one can point me where is
off
I've created a ou called pcslab1
I've moved all the pc's from lab 1 to the above ou
I've created a vb script called addprnt.vbs (see script below) to add the
appropriate printer and set as default
I've created a group policy for the above ou and assigned the addprnt.vbs
logon script
if I double click the script manually it works fine, also no events
here is the script...
Option Explicit
Dim objNetwork, strUNCPrinter
strUNCPrinter = "\\servername\sharename"
Set objNetwork = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection strUNCPrinter
objNetwork.SetDefaultPrinter strUNCPrinter
WScript.Echo "Check the Printers folder for : " & strUNCPrinter
WScript.Quit
I'd appreciate any help, thanks in advanced
I've setup a network in a school that has over 700 students that will all
use the newly created computer labs, we have about 7-8 labs and 2 public
libraries, one of the things I need to accomplish is to simplify the printer
creation process, the problem is that the same user will move around from
lab to lab and of course the public library's we have different printers
setup all over the place, I was thinking of setting up scripts based on the
computer so no mater where the user logs on they will get the correct
printer automatically created for them and set as the default, I have
created a procedure but its not working perhaps one can point me where is
off
I've created a ou called pcslab1
I've moved all the pc's from lab 1 to the above ou
I've created a vb script called addprnt.vbs (see script below) to add the
appropriate printer and set as default
I've created a group policy for the above ou and assigned the addprnt.vbs
logon script
if I double click the script manually it works fine, also no events
here is the script...
Option Explicit
Dim objNetwork, strUNCPrinter
strUNCPrinter = "\\servername\sharename"
Set objNetwork = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection strUNCPrinter
objNetwork.SetDefaultPrinter strUNCPrinter
WScript.Echo "Check the Printers folder for : " & strUNCPrinter
WScript.Quit
I'd appreciate any help, thanks in advanced