Hello,
we often need to stop the spooler, delete the jobs and restart the spooler. This is an easy way to do this. You can use this batch to restart also other services...
@echo off
setlocal
set PSPATH=\\path\to\your\pstools\
set PC=%1
%PSPATH%\psservice.exe \\%PC% stop spooler
del \\%PC%\admin$\system32\spool\PRINTERS\*.* /Q
%PSPATH%\psservice.exe \\%PC% start spooler
You can build the custom action
\\scriptpath\scriptfolder\filename.bat {computer}
Kind Regards,
Daniel