My problem is that there is no way to clear the Windows queue without stopping/starting the spooler service ??
We are using Windows queue status feedback to know whether print has occurred successfully to bill the customer. So we enable the “Keep printed documents” on print queue advanced properties.
Our scalability is 100+ transactions a day, so starting and stopping the service this many times is a terrible way to do it. Worse there are dependencies and other crucial services that have to be restarted with the spool service every time
I have a script that clears the Windows print queue successfully as follows:
net stop spooler /y
del %windir%System32spoolprinters /Q
net start spooler
Fast forward, We need to clear the Windows print queue after every transaction to allow for the next one
chriszeymar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.