Solved

Printer script for making default printer

Posted on 2013-01-21
2
275 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with exporting to excel 4 44
how to apply link to datagridview cell in vb.net without looping the grid rows 1 35
Get sourcecode path 14 46
vb.net sendkey 4 18
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

740 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