echo [2] Killing any hanging spoolsv.exe processes... taskkill /f /im spoolsv.exe >nul 2>&1
echo [3] Clearing print queue files... del /f /s /q "C:\Windows\System32\spool\PRINTERS*.*" >nul 2>&1 del /f /s /q "C:\Windows\System32\spool\PRINTERS*.SHD" >nul 2>&1 del /f /s /q "C:\Windows\System32\spool\PRINTERS*.SPL" >nul 2>&1 print spooler fix tool for windows 10 64 bit
echo [8] Cleaning old printer event logs... wevtutil cl "Microsoft-Windows-PrintService/Admin" >nul 2>&1 echo [2] Killing any hanging spoolsv
If the script fails, run these commands manually in an elevated Command Prompt: &1 If the script fails
echo [9] Running SFC check on spooler system files... sfc /scanfile=C:\Windows\System32\spoolsv.exe >nul sfc /scanfile=C:\Windows\System32\localspl.dll >nul
echo [10] Removing stuck printer jobs from registry (optional)... reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Print\Printers" /f >nul 2>&1 echo NOTE: This removes ALL printers. They must be re-added manually.