Solved

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

Posted on 2007-12-05
2
190 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
[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 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
Invest in your employees with these five simple steps to improve employee engagement and retention.
This video shows how use content aware, what it’s used for, and when to use it over other tools.
This video will demonstrate how to find the puppet warp tool from the edit menu and where to put the points to edit.

751 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