I m trying to query printers with status: Offline or Error - Offline.
Currently I'm trying this, but it will also return printers with status: Paper jam or Toner low etc.
get-WmiObject -class Win32_printer | Where-Object {$_.PrinterStatus -eq '1'} | ft Name,Location,PortName,DriverName -AutoSize
How should I modify my query to get only the printers with the status Offline or Error - Offline?