Flush Printer queue remotely
A user call you and tell you that he/she cannot delelete a document in the local printer queue. As it is not a network printer you may have trouble to connect and flush the queue.
What you need is psexec, a very nice and useful tools (availalble here for free)
When you print local, it goes to %system32%\spool\Printers. So you just need to delete what’s in it. But first you need to stop the spooler and restart it when done.
Here is a little script that could help you doing that:
@echo off
net stop “print spooler”
echo Deleting queue on remote computer…
del /q “%SystemRoot%\system32\spool\PRINTERS\*.*”
echo Queue deleted
net start “print spooler”
Echo Waiting for Spooler.
ping localhost -n 5 > nul

