Hi all!
I have need to clear the local print queue on the gateway using a button on a perspective session. TLDR is everytime the printer runs out of ink or paper, it locks up the print queue and backs up till somone fixes the printer, and then clears the queue. The gateway is on a VM the site guys can't / dont want to touch.
I've made a button that writes to a tag with a script to run a batch file - All good.... well except nothing happens!
The batch file is a simple:
net stop spooler
DEL /F /S /Q %systemroot%\System32\spool\PRINTERS\*
net start spooler
but I'm guessing because this needs to be run with admin rights, the gateway can't execute it. Anyone got other ideas or know how to fix this issue?
Thanks!
Alex