Just a way to clear print jobs that may be stuck "printing" or if they are in error status.
PowerShell:
$PrintJobs = get-wmiobject -class "Win32_PrintJob" -namespace "root\CIMV2" -computername "."
foreach ($job in $PrintJobs) {
$pos = ($job.Name).IndexOf(",")
$printerName = ($job.Name).Substring(0, $pos)
if($job.JobStatus -like "Error | Printing") {
#Write-Host "Canceling job $($job.JobId)"
Remove-PrintJob -ComputerName $env:COMPUTERNAME -ID $job.JobId -PrinterName $printerName
}
}