Skip to content

Instantly share code, notes, and snippets.

@Techlogist
Last active October 3, 2021 12:36
Show Gist options
  • Save Techlogist/4740f518a8070f871511a39bef9b55f6 to your computer and use it in GitHub Desktop.
Save Techlogist/4740f518a8070f871511a39bef9b55f6 to your computer and use it in GitHub Desktop.
Reset the print server spooler
REM License: GNU General Public License v2.0
REM Author: Miguel
REM Website: www.techlogist.net
REM Post: https://techlogist.net/batch/reset-the-print-server-spooler
REM Description: This script helps users to reset the print spooler
REM OS/Language/Region: Windows/EN-US
@echo off
REM This script helps users to reset the print spooler
title Restart Spooler
color f0
mode con:cols=70 lines=10
goto start
:start
net stop spooler
sc config spooler depend= RPCSS
del %systemroot%\System32\spool\printers* /Q /F /S
net start spooler
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment