We need to clear the Windows print queue after every transaction to allow for the next one.
I have a script that clears the Windows print queue successfully as follows:
However our environment requires that in doing so, we need to do that without stopping and restarting the spooler service.
Is there a way to do that?
net stop spooler /y
del %windir%System32spoolprinters /Q
net start spooler
New contributor
chriszeymar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.