cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Merbecks
Engaged Sweeper II
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
1 REPLY 1
djpons
Engaged Sweeper
great job.

thanks

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now