Link to home
Start Free TrialLog in
Avatar of vinimall
vinimall

asked on

set a default printer using GPO server 2003

Hi could anyone tell me how to set a default printer using GPO. I know I need logon script but Im ne to the script world. The printer is attached to my server, my server namer is "server" and my printer name is "HP01" thanks for any help
Avatar of activeitnetworks
activeitnetworks
Flag of Canada image

You can create a vbscript logon script using the following:

This will connect to a network shared printer and set it as the default printer.
Option Explicit
Dim objPrinter
Set objPrinter = CreateObject("WScript.Network") 
objPrinter.AddWindowsPrinterConnection "\\ServerName\PrinterName"
objPrinter.SetDefaultPrinter "\\ServerName\PrinterName"

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of activeitnetworks
activeitnetworks
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial