WMI for Printer Status??

H

Harry Simpson

I'm trying to grab printer status for a printer with WMI

I got a mo("PrinterState").tostring of "128" for a paused HP printer. What
is "128" equate to? It did give a mo("PrinterStatus").tostring of 1 =
"paused" which was correct but it took a while to display the correct state.

When I un-paused the printer, I got a mo("PrinterState").tostring of "0".
What is "0" equate to? It got a mo("PrinterStatus").tostring of 0. Is "0"
mean ok, ready?

Anyone had experience in correctly grabbing info from WMI?

I'm getting info but not consistent info and i don't know how to translate
the codes since they don't match up with the ones in the WMI SDK.


Any clues as how to effectively use
Management.ManagementObjectSearcher("Select * from Win32_Printer")

to get accurate info on networked printers within a domain?



TIA

Harry
 
L

Lespaul36

I don't know the answer, but you might try posting in
microsoft.public.dotnet.fromework.wmi newsgroup

Good Luck
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top