Advertisement

01.10.2008 at 09:20PM PST, ID: 23074931
[x]
Attachment Details

Printer script not working on an computer OU

Asked by tracyms in Windows 2003 Server

Tags: , , , ,

Dim net
Set net = CreateObject("WScript.Network")
net.AddWindowsPrinterConnection "\\SERVER\HPLaserJet1"
net.AddWindowsPrinterConnection "\\ SERVER \HPLaserJet2"
net.AddWindowsPrinterConnection "\\ SERVER \HPLaserJet3"
net.AddWindowsPrinterConnection "\\ 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
[+][-]01.10.2008 at 11:30PM PST, ID: 20634749

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Windows 2003 Server
Tags: ou, 2003, script, computers, working
Sign Up Now!
Solution Provided By: kamalgopi
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628