Just a way to clear print jobs that may be stuck "printing" or if they are in error status.
$PrintJobs = get-wmiobject -class "Win32_PrintJob" -namespace "root\CIMV2" -computername "."
foreach ($job in $PrintJobs) {
$pos = ($job.Name).IndexOf(",")
$printerName =...