Solved

I need to remove network printers but I need to ue a "if exists" command.

Posted on 2007-12-05
2
184 Views
Last Modified: 2011-09-20
I am using
"rundll32 printui.dll\,PrintUIEntry /dn /n\\\\server\\queue"
as my command but am getting errors if the printer in question is not already installed on the end users pc.  I cannot find a "if exists" switch.
0
Comment
Question by:TheITGuy
2 Comments
 
LVL 83

Accepted Solution

by:
oBdA earned 50 total points
ID: 20413117
Simply add a /q (for quiet mode) to the command line to suppress the warning.
0
 
LVL 1

Author Closing Comment

by:TheITGuy
ID: 31412879
Cool.. That is what I needed.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

758 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

17 Experts available now in Live!

Get 1:1 Help Now