Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Querying printers with status: Offline or Error - Offline

$
0
0

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?



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>