Wednesday, June 5, 2019

Printer spooler

REM RMspool.bat
REM Usage: C:\>rmspool [computername]

@echo off
@echo Killing Fax@vantage processes
taskkill /S %1 /F /IM @vantage.exe /T
taskkill /S %1 /F /IM BiMAppNT.exe /T

@echo Stopping spooler
psexec \\%1 -n 5 -w C:\windows\system32\spool\printers net stop spooler

@echo Deleting print jobs
psexec \\%1 -n 5 -w C:\windows\system32\spool\printers cmd /c del *.shd *.spl

@echo starting spooler
psexec \\%1 -n 5 -w C:\windows\system32\spool\printers net start spooler

@echo All tasks completed. View output above before closing.
@pause




**

No comments:

Post a Comment

Коментар: