Hello Everyone,
I am working on a number of new computers, and I am attempting to automate the process of getting them ready for my users as much as possible. One of the steps that I am taking is to add a vbs script to be used to add all of the printers that the users will need when they log onto the computer. I have some other scripts I am working on, but having problems with also. I'll ask about those in other questions. For this particular script, I am noticing that when I log onto the computer as a domain admin the printers show up as expected. When I log out, and log back into the same computer as a "regular" user, those printers aren't showing up. Is there something I need to do differently with the script? Is there a configuration I need to make somewhere else to have the script work for a "regular" user? I have the script in my Group Policy for that machine under "User Configuration" >> "Windows Settings" >> "Scripts (Logon/Logoff). I did have the script saved to my user folder on one of our shares. I attempted to put it with the batch scripts on one of our main servers thinking it was a permission issue, but that didn't work either.
Here is the Script:
'// Name: setprint.vbs
'// Description: Add a network printer and make it the default
'// Accounting Printers
Set WshNetwork = CreateObject("WScript.Netw
ork")
'// Adds the printer. Substitute your server name and printer share.
WshNetwork.AddwindowsPrint
erConnecti
on "\\Server1\User Printer"
WshNetwork.AddwindowsPrint
erConnecti
on "\\Server1\User Printer 2"
WshNetwork.AddwindowsPrint
erConnecti
on "\\Server1\User Printer 3"
'// Makes the specified printer the default.
WshNetwork.SetDefaultPrint
er "\\vmrfsv1\2120-STN-ACC"
Thank you in advance for you help with this. I really would like to have all of this working smoothly so that we can reduce the amount of time it takes to configure computers for users.
Start Free Trial