Thursday 19 November 2020

Windows: Clear print queue with PowerShell

To clear a print queue using PowerShell open an elevated PowerShell prompt and run the following commands:

Stop-Service Spooler

Remove-Item -Path $env:windir\system32\spool\PRINTERS\* -Recurse -Force -Confirm:$false

Start-Service Spooler

No comments:

Post a Comment