WMI win32_printjob returns pending print jobs with statusmask=8208 and statusmask=4096

H

HL416

I am using PowerShell to monitor Windows 7 Enterprise hosts on our internal network. Specifically querying for stuck print jobs. The WMI class win32_printjob returns the results I am looking for, however I am trying to decode what StatusMask 8208 and StatusMask 4096 could mean. The documentation on Microsoft Dev Center mentions some of the values, up to 0x800 = 2048 but nothing higher. Can anyone chime in ?


Here is a sample:


PS D:\Test> Invoke-Command -Computername ABC-1234PC -Authentication Basic -Credential admin -ScriptBlock {
Return Get-WmiObject -namespace root\cimv2 -class win32_printjob
} | ft -AutoSize jobid,status,jobstatus,drivername,statusmask

JobId Status JobStatus DriverName StatusMask
----- ------ --------- ---------- ----------
80 OK Printing EPSON TM-T20 ReceiptE4 8208
81 UNKNOWN EPSON TM-T20 ReceiptE4 0

Continue reading...
 
Back
Top Bottom