Created
April 28, 2021 17:55
-
-
Save det-peralta/e45cd7c0733a86cc9961dfd4ea7606f2 to your computer and use it in GitHub Desktop.
clean printer spooler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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