Greetings,
We are trying to run a WMI query that detects the total amount of jobs currently in the print queue which we have done, but are also wanting to detect whether the printer has errors or is offline so that these are ignored. Is there a way to have more than one table in the FROM clause of the query?
SELECT Jobs FROM Win32_PerfFormattedData_Spooler_PrintQueue WHERE Name='_Total'
This is what we are currently running, but want to add Win32_Printer Where Portname like 'USB%' AND Workoffline = False to the query.