I have a windows 2003 R2 SP2 server and our network has a mix of xp and windows 7. I am trying to use a script to set the default printer on computers based on the OU the computers are in. I have tried applying it as a startup script and as a login script - with no success. I can log into a computer and manually run the script, so I know it isn't an error in the script. Can anyone help me with what I am missing?
I have also tried it with a copier named CopierC... in case it had something to do with the hyphens or the long name.
I have used different variations of the script, but this is the current one:
' Set default printer
Option Explicit
Dim objPrinter
Set objPrinter = CreateObject("WScript.Network")
objPrinter.SetDefaultPrinter "\\library-server\HPLJ-P2035n-C103"

