Solved

Printer script for making default printer

Posted on 2013-01-21
2
274 Views
Last Modified: 2013-01-28
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
0
Comment
Question by:alphaphaedrus
2 Comments
 
LVL 20

Accepted Solution

by:
agonza07 earned 500 total points
ID: 38803482
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 38803638
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Web Form VB.Net  import CSV 4 44
VB.Net - MemoryMappedFiles - Confirm receipt 2 24
How to limit User Input 2 27
How to repeat the data 4 18
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question