I am trying to use a VBscript to map printers for a group of computers. As of right now I am trying to run the script via GPO at start up but it is not working. I have even tried copying the script to the start up folder but it still does not run. I can manually run the script and it maps the printers correctly but that is the only way I have been able to get it to work. Any help would be appreciated. Basically I want it to run every time a user logs into one of these computers so they can use these printers.
Set net = WScript.CreateObject("wscript.network")
net.AddWindowsPrinterConnection "\\server\printer1"
net.AddWindowsPrinterConnection "\\server\printer2"
net.SetDefaultPrinter "\\server\printer1"
Set net = WScript.CreateObject("wscript.network")
net.AddWindowsPrinterConnection "\\server\printer1"
net.AddWindowsPrinterConnection "\\server\printer2"
net.SetDefaultPrinter "\\server\printer1"