I am currently trying to design a powershell script to check if any of the printers attached to a Win Server 2003R2 have jobs stuck in the queue. so far I am doing:
Get-WmiObject -class "win32_printer" | ft shareName, queued, printerState, printerStatus
but I need to see how the results change when there is a problem. Short of just waiting until the next time I hear there is a job stuck in the queue, can anyone suggest a way to force an error? What I am looking to catch with this script is those issues wherein a job gets stuck with an error and the whole queue stops, so if I could cause that, it would be great.