Logon Script Printer
- This topic has 7 replies, 4 voices, and was last updated 9 years, 2 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Home › Forums › Server Operating Systems › Windows Server 2000 / 2003 / 2003 R2 › Logon Script Printer
Hello
I bet i’m done something silly!
Our Printer has broken, I install a New Network Printer I wanted a logon script for our windows server 2003 user to install the printer
Option Explicit
Dim objNetwork, strUNCPrinter
strUNCPrinter = “[URL=”file://\dcUpRicho”]\dcUpRicho[/URL]”
Set objNetwork = CreateObject(“WScript.Network”)
objNetwork.AddWindowsPrinterConnection strUNCPrinter
‘ Here is where we set the default printer to strUNCPrinter
objNetwork.SetDefaultPrinter strUNCPrinter
WScript.Echo “Default Printer is : ” & strUNCPrinter
WScript.Quit
I name this DefPrinter.vbs
This work’s if you run on the User computer I want this on the netlogon folder
I went into AD User Properies User profile Logon Script Select DefPrinter.vbs
I copied the Defprinter.vbs into The [URL=”file://\dc1netlogon”]\dc1netlogon[/URL] Secuirity Authenicated Users Read & execute system user full control
Then told the user to logon in, The Printer did not change, what bit have i missed?
Cheers
You must be logged in to reply to this topic.
Find out more about our cookie policy here.