

Copy and paste the example script below into notepad or a VBScript editor.Instructions for Listing Processes WMI Script Be aware, there may be a delay while the script checks all possible printer ports. The only pre-requisite is that you have a printer attached to the machine where you run the script. Prerequisites for Your Printer WMI Script
#Wmi printer serial number driver#
I am impressed by the sheer number of properties, from obvious items such as share name and printer driver to little known Horizontal Resolution. In the case of printer, there are eight Win32 objects to choose from, so if at first you don’t succeed try a different class of object. As with most WMI scripts, the key is identifying the best Win32_Classes to query. While the most likely solution is to add paper or toner however, you may want to run a WMI script just in case there is a configuration setting that would help prevent the problem re-occurring. Printers and Print Devices, give more than their fair share of administrative problems. Scenario – Why Do Want to Query a Printer?
Introduction to Querying Printers with WMI
