Hi all,
I made a vbscript to add a network printer to an OU containing computers. the script will work if i click on it at a workstation but not by gpo. I added the vbs to the user config. windows settings, logon scripts in the gpo. any ideas?
thanks!
I'm not sure about that there are quite a few ways, but my script works fine for our 400 stations so you might want to try it.
There is more info here.
I think I got mine from Technet but I can't find where to give you the link, anyway I assure the code i pasted works flawlessly we have 1500 users roaming between various PC's and it adds them every time.
Well this way i can just add the script in one place for all users so it's easy to make changes as i just alter the script, it incures very little overhead to manage them this way.
Set Network = CreateObject("Wscript.Network")
compname = network.computername
room = left(compname,3)
Select Case room
Case "D29"
The D29 bit is the first three charectors of the PC name.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.