Dim net
Set net = CreateObject("WScript.Netw
ork")
net.AddWindowsPrinterConne
ction "\\SERVER\HPLaserJet1"
net.AddWindowsPrinterConne
ction "\\ SERVER \HPLaserJet2"
net.AddWindowsPrinterConne
ction "\\ SERVER \HPLaserJet3"
net.AddWindowsPrinterConne
ction "\\ SERVER \HPColorLaser"
' Set the default printer for computers in Suite 1
net.SetDefaultPrinter \\SERVER \HPLaserJet1
I've created 3 OUs in Windows 2003 server called Suite 1 Printer, Suite 2 Printer, Suite 3 Printer and placed computers in the Ous.
Created a group policy on the OU and tried placing the above vbs in the computer startup section and user logon section of the gpo in Suite 1 Printers to test but not successful - it runs fine if I execute the script while logged in any machine on the domain.
I had loopback policy enabled and got it to work but it slowed down profile log on/off times so I removed the loopback policy but it should still work shouldn't it if set as a logon script?
Start Free Trial