Printer Script
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
Answers (1)
Please log in to answer
Posted by:
Desktop Jockey
7 years ago
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 - Desktop Jockey 7 years ago