Solved

Printer script for making default printer

Posted on 2013-01-21
2
265 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
Comment Utility
0
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now