Link to home
Start Free TrialLog in
Avatar of alphaphaedrus
alphaphaedrusFlag for United States of America

asked on

Printer script for making default printer

I'm currently having problems pushing out a .vbs  to add and make a network printer (PTR-QCM) the default printer. Can someone advise me on any faulty code for this file so I can push it out to my end users? The script is as follows:
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.SetDefaultPrinter "\\servername\PTR-QCM"
msgbox"Your printer has been updated."


Thank you
ASKER CERTIFIED SOLUTION
Avatar of agonza07
agonza07
Flag of United States of America 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