About a year ago I create an online Kscript to install a shared printer which I over deployed because my smart label criteria was messed up.  After we caught the problem I had it over deployed to about 100 to many computers world wide.  We stopped it by removing the smart label from the scripts "Deploy to".

The KScript is very simple.  It is just On Success run a batch file and the batch file text is:


rundll32 printui.dll,PrintUIEntry /ga /n \\MyPrintServer\SharedPrinter
net stop spooler
ping > nul
net start spooler

We keep manually deleting this printer, but it keeps coming back.  I tried to check the C:\Programdata\Dell\Kace folders for to see if maybe the batch file is downloaded or stuck or something, but I do not see it.

I deleted the printer again and ran "runkbot 4 0" and even "1 0" thru "6 0" and the printer does not show, but tomorrow it will show up again.  How do I permanantly get rid of this?

Answer Summary:
0 Comments   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity



Look at the inventory of a machine in question and check the Scripting Logs section. It will list all scripts targeted to that machine. See if something stands out there...

Answered 11/21/2013 by: jegolf
Red Belt

  • I think I solved my own question. The "/ga" installs for all user so even if you are an admin and you delete the printer, it comes back. You have to undo the command with "/gd"
Please log in to comment