Jump to content

Recommended Posts

Posted

Hello All,

 

 

 

I have a logon script (W2k3 domain) which runs as part of a group policy.

 

The script connects a networked printer and sets it as default. Works

 

perfect on Windows Xp systems. Just introduced 4 Vista Pro systems to the

 

network. I'm findng the script runs and connects the printer, but setting it

 

as the default is hit and miss! Sometimes it sets it as default, other times

 

not. The VBS script is as follows:

 

 

 

Option Explicit

 

Dim objNetwork, strUNCPrinter

 

strUNCPrinter = "\\server1\laser7"

 

Set objNetwork = CreateObject("WScript.Network")

 

objNetwork.AddWindowsPrinterConnection strUNCPrinter

 

objNetwork.SetDefaultPrinter "\\server1\laser7"

 

WScript.Quit

 

 

 

Anyone have any suggestions? It would be greatly appreciated!!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...