Deleting a network printer with kix script

Posted on 2007-07-25
Last Modified: 2012-06-27
I added a printer on our kix script using $RC AddPrinterConnection.
I had to change the default on the driver on the server from Color to B&W.
Now I want to delete the printer in the script and have it install again so that clients get this change.  How do I do this?
I tried $RC DeletePrinterConnection....and it didn't work.
Using Windows 2003 server and xp pro clients.  I am not a programmer, so would like an "easy" answer.


Question by:Annie333
    LVL 12

    Accepted Solution

    Hello here is a script already written and accepted for removeing and adding a printer that i have used as well

    LVL 51

    Assisted Solution

    rundll32 printui.dll,PrintUIEntry /dl /b "Test Printer"
    # see rundll32 printui.dll,PrintUIEntry /?


    Author Comment

    Is there no RC command, such as AddPrinterConnection, that would remove a printer? Something simple?  ahoffman, can you please tell me what your script is saying or can you give me a link that I can go to which would explain these parameters?


    LVL 51

    Expert Comment

    > .. can you please tell me what your script is saying  .. explain these parameters?
    rundll32 printui.dll,PrintUIEntry /?

    > Is there no RC command, such as AddPrinterConnection, ..
    hey, you bought a modern system where everithing someone imagined can simply be done by click&go, didn' they sell you a mouse too?
    LVL 1

    Expert Comment

    Forced accept.

    EE Admin

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Suggested Solutions

    The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
    It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
    Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
    Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

    759 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

    10 Experts available now in Live!

    Get 1:1 Help Now