Hello, i have setup a online kscript to install a Printer as the logged on user, on a schedule for every 20mins and attempts 1.
the script launches a program directory=SYS and filename =cmd.exe, parameters =/C rundll32 printui.dll,PrintUIEntry /q /in /n \\PrintServer\nameOfPrinter and wait for completion is ticked and visable is unticked.

As i say this works fine, but this keeps running every 20mins, i know it keeps running as a popup appears installing the same Printer.
This Printer is then not listed in the device inventory under Printers, is this why it keeps installing?

Is there a way to stop this, so that it runs once on sucess dont run again?

Thanks

2 Comments   [ + ] Show Comments

Comments

  • I would run a verify first:
    Verify that registry key exists or not:
    HKEY_CURRENT_USER\Printers\Connections\BlahBlahBlah
    Then If it does not exist, Run your Printer add:
    rundll32 printui.dll,PrintUIEntry /q /in /n \\Your Printer
  • This content is currently hidden from public view.
    Reason: Removed by member request
    For more information, visit our FAQ's.
  • thanks this worked fine
Please log in to comment

Answers

0
I would run a verify first:
Verify that registry key exists or not:
HKEY_CURRENT_USER\Printers\Connections\BlahBlahBlah
Then If it does not exist, Run your Printer add:
rundll32 printui.dll,PrintUIEntry /q /in /n \\Your Printer
Answered 05/19/2017 by: Desktop Jockey
Senior White Belt

Please log in to comment
Answer this question or Comment on this question for clarity