I am looking for a way to delete all contents of the printer queue when a user either logs in or out. The printer all users print to sometimes causes errors and the queue backs up. I need to do this without any interaction from the user. I have had success using this in logoff script as an admin:
net stop spooler
del /Q c:\windows\system32\spool\printersnet start spooler
but regular users don't have access. Any ideas on how to accomplish this.
net stop spooler
del /Q c:\windows\system32\spool\printersnet start spooler
but regular users don't have access. Any ideas on how to accomplish this.