CMD script to clear the print queue with the restart of the print manager.
1 2 3 4 5 6 |
@echo off net stop spooler IF EXIST "WindowsSystem32spoolPRINTERS" del "WindowsSystem32spoolPRINTERS*.*" /f /s /q net start spooler echo Finished pause |