Skip to content

Instantly share code, notes, and snippets.

@det-peralta
Created April 28, 2021 17:55
Show Gist options
  • Save det-peralta/e45cd7c0733a86cc9961dfd4ea7606f2 to your computer and use it in GitHub Desktop.
Save det-peralta/e45cd7c0733a86cc9961dfd4ea7606f2 to your computer and use it in GitHub Desktop.
clean printer spooler
@echo off
powershell -windowstyle hidden -command "Start-Process cmd -ArgumentList '/s,/c,net stop spooler & DEL /F /S /Q %systemroot%\System32\spool\PRINTERS\* & net start spooler' -Verb runAs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment