Solved

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

Posted on 2007-12-05
2
188 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 84

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

839 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