Why does it always seem like when we need to print something urgently, the printer seems to have bugs, and when you’re printing something totally unnecessary and just for fun, it works seamlessly?
So, the next time you’re looking to print something that was due ‘yesterday’, keep in mind this groovy script to assist in cleaning up your print queue.
This script clears the Windows print queue for all printers, and also restarts the print spooler service.
In case you need a little refresher on what the print spooler is, it’s a software built into the Windows OS that temporarily stores print jobs in the computer’s memory until the printer is officially ready to finally print them.
In any case, here’s the script to help you wait less time in the proverbial printer queue, and more time on literally anything else.
The Script:
Atera does not guarantee the integrity, availability, security, virus-free, safety, lawfulness, non-infringement, rights’ status, or functionality of the scripts. The use of the shared scripts is at your own risk. Scripts are provided “AS IS”. *
net stop spooler
del %windir%\system32\spool\printers\*.shd
del %windir%\system32\spool\printers\*.spl
net start spooler
Technical Notes:
1. This script will clear all print queue jobs, and as a result, may clear pending print jobs users are expecting or waiting on. Users will need to reprint anything that didn’t successfully complete.
2. The print spooler is an executable file that manages the printing process.