Clearing a Stuck Windows Print Queue Using a Short PowerShell Script
Windows print jobs can freeze in the 'Deleting' state, blocking every document queued behind them. Each job is stored as a .SPL data file and a .SHD metadata file in the system spool folder, and the Print Spooler service can hold onto these files when a job is corrupted or a printer drops off the network. The article recommends first trying the built-in Get-PrintJob and Remove-PrintJob cmdlets, and if that fails, a script that stops the spooler, deletes the spool files, and restarts the service. The script can be launched from a desktop shortcut set to run as administrator for non-technical users. Any pending print jobs are lost and must be resent, and on shared print servers others' jobs will be interrupted, so users should be warned first.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in