I have a bunch of log on scripts which have to be applied at session log on. Some of them are correctly applied, but I have one for printers connection, which don't work every time.
At first time login, printers are not present. At second-time login, printers are connected.
There are many users, and each user have to login twice! I mean, only for printers, as others scripts are applied at first time.
How can I force printers connection at first time login?
Here is the VBScript:
Dim objNetwork Set objNetwork = CreateObject("WScript.Network") objNetwork.AddWindowsPrinterConnection "\\server\Ricoh" objNetwork.SetDefaultPrinter "\\server\Ricoh" objNetwork.AddWindowsPrinterConnection "\\server\Canon" objNetwork.AddWindowsPrinterConnection "\\server\Sharp"
Script is located under GPO in User configuration and users are in the OU-related GPO.