The Win32_Printer class has these properties.
Bitmap of attributes for a Windows-based printing device.
Queued
Print jobs are buffered and queued.
Direct
Document to be sent directly to the printer. This value is used if print jobs are not queued correctly.
Default
Default printer on a computer.
Shared
Available as a shared network resource.
Network
Attached to a network. If both Local and Network bits are set, this indicates a network printer.
Hidden
Hidden from some users on the network.
Local
Directly connected to a computer. If both Local and Network bits are set, this indicates a network printer.
EnableDevQ
Enable the queue on the printer if available.
KeepPrintedJobs
Spooler should not delete documents after they are printed.
DoCompleteFirst
Start jobs that are finished spooling first.
WorkOffline
Queue print jobs when a printer is not available.
EnableBIDI
Enable bidirectional printing.
Allow only raw data type jobs to be spooled.
Published
Published in the network directory service.
Availability and status of the device.
Running or Full Power
The device is known to be in a power save mode, but its exact status is unknown.
The device is in a power save state but is still functioning, and may exhibit degraded performance.
The device is not functioning, but could be brought to full power quickly.
The device is in a warning state, though also in a power save mode.
The device is paused.
The device is not ready.
The device is not configured.
The device is quiet.
Array of all the job sheets available on a printer. Can also be used to describe the banner that a printer might provide at the beginning of each job, or other user-specified options.
Printing rate, in average number of pages per minute, that a printer can produce output.
Array of printer capabilities.
One-Sided
Two-Sided Long Edge
Two-Sided Short Edge
Array of free-form strings that provide detailed explanations for the printer features indicated in the Capabilities array. Each entry of this array is related to an entry in the Capabilities array that is located in the same index.
Short description of an object—a one-line string.
Array of available character sets for output. Strings provided in this property must conform to the semantics and syntax specified by section 4.1.2 ("Charset parameters") in RFC 2046 (MIME Part 2) and contained in the IANA character-set registry. Examples include, "UTF-8", "us-ASCII", and "iso-8859-1".
Comment for a print queue.
Example: Color printer
Win32 Configuration Manager error code.
Device is working properly.
Device is not configured correctly.
The driver for this device might be corrupted, or your system may be running low on memory or other resources. (3)
Driver for this device might be corrupted, or the system may be low on memory or other resources.
This device is not working properly. One of its drivers or your registry might be corrupted. (4)
Device is not working properly. One of its drivers or the registry might be corrupted.
The driver for this device needs a resource that Windows cannot manage. (5)
Driver for the device requires a resource that Windows cannot manage.
The boot configuration for this device conflicts with other devices. (6)
Boot configuration for the device conflicts with other devices.
Driver loader for the device is missing.
This device is not working properly because the controlling firmware is reporting the resources for the device incorrectly. (9)
Device is not working properly. The controlling firmware is incorrectly reporting the resources for the device.
Device cannot start.
Device failed.
This device cannot find enough free resources that it can use. (12)
Device cannot find enough free resources to use.
Windows cannot verify the device's resources.
This device cannot work properly until you restart your computer. (14)
Device cannot work properly until the computer is restarted.
This device is not working properly because there is probably a re-enumeration problem. (15)
Device is not working properly due to a possible re-enumeration problem.
Windows cannot identify all the resources this device uses. (16)
Windows cannot identify all of the resources that the device uses.
Device is requesting an unknown resource type.
Device drivers must be reinstalled.
Registry might be corrupted.
System failure: Try changing the driver for this device. If that does not work, see your hardware documentation. Windows is removing this device. (21)
System failure. If changing the device driver is ineffective, see the hardware documentation. Windows is removing the device.
Device is disabled.
System failure: Try changing the driver for this device. If that doesn't work, see your hardware documentation. (23)
System failure. If changing the device driver is ineffective, see the hardware documentation.
This device is not present, is not working properly, or does not have all its drivers installed. (24)
Device is not present, not working properly, or does not have all of its drivers installed.
Windows is still setting up the device.
Windows is still setting up the device.
Device does not have a valid log configuration.
Device drivers are not installed.
This device is disabled because the firmware of the device did not give it the required resources. (29)
Device is disabled. The device firmware did not provide the required resources.
This device is using an Interrupt Request (IRQ) resource that another device is using. (30)
Device is using an IRQ resource that another device is using.
This device is not working properly because Windows cannot load the drivers required for this device. (31)
Device is not working properly. Windows cannot load the required device drivers.
If TRUE, the device is using a user-defined configuration.
Name of the first concrete class to appear in the inheritance chain used to create an instance. When used with other key properties of the class, the property allows all instances of this class and its subclasses to be identified uniquely.
Array of printer capabilities that are being used currently. An entry in this property must also be listed in the Capabilities array.
One-Sided
Two-Sided Long Edge
Two-Sided Short Edge
The character set currently used for output. Strings provided in this property must conform to the semantics and syntax specified by section 4.1.2 ("Charset parameters") in RFC 2046 (MIME Part 2) and contained in the IANA character-set registry. Examples include "utf-8", "us-ASCII", and iso-8859-1.
Printer language currently used. The language used must be listed in the LanguagesSupported property.
LineData
DODCA
SimpleText
XPS
HPGL2
PCLXL
MIME type currently being used if the CurrentLanguage is a MIME type (value = 47).
Language that the printer is using for management currently. The language listed here must also be listed in the NaturalLanguagesSupported property.
Type of paper the printer is using. Must be expressed in the form specified by the ISO/IEC 10175 Document Printing Application (DPA), which is summarized in Appendix C of RFC 1759 (Printer MIB).
If TRUE, the printer is the default printer.
Array of the printer capabilities used by default. Each entry in the DefaultCapabilities array must also be listed in the Capabilities array.
One-Sided
Two-Sided Long Edge
Two-Sided Short Edge
Number of copies produced for one job—unless otherwise specified.
Default printer language. The language listed here must also be listed in the LanguagesSupported property.
LineData
DODCA
SimpleText
XPS
HPGL2
PCLXL
MIME type currently being used, if the DefaultLanguage value is a MIME type (value = 47).
Number of print-stream pages that the printer renders on one media sheet—unless a job specifies otherwise.
Default priority value assigned to each print job.
Description of an object.
Printer error information.
Unknown (0)
Other (1)
No Error (2)
Low Paper (3)
No Paper (4)
Low Toner (5)
No Toner (6)
Door Open (7)
Jammed (8)
Offline (9)
Service Requested (10)
Output Bin Full (11)
Unique identifier of the printer on a system.
If TRUE, the print job is sent directly to the printer. If FALSE, the print job is spooled.
If TRUE, the printer starts jobs that are finished spooling. If FALSE, the printer starts jobs in the order that the jobs are received.
Name of the Windows printer driver.
Example: Windows Fax Driver
If TRUE, the printer can print bidirectionally.
If TRUE, the printer holds documents in the queue when document and printer setups do not match.
If TRUE, the error reported in LastErrorCode has been cleared.
Information about the error recorded in LastErrorCode, and information about corrective actions that can be taken.
Array of supplemental information for the current error state indicated in DetectedErrorState.
Reports standard error information. Additional information should be recorded in DetectedErrorState.
Values are:
Unknown
Other
No Error
Low Paper
No Paper
Low Toner
No Toner
Door Open
Jammed
Service Requested
Output Bin Full
Paper Problem
Cannot Print Page
User Intervention Required
Out of Memory
Server Unknown
Status information for a printer that is different from information specified in the Availability property.
Other
Unknown
Idle
Printing
Warming Up
Stopped Printing
Offline
Paused
Error
Busy
Not Available
Waiting
Processing
Initialization
Power Save
Pending Deletion
I/O Active
Manual Feed
If TRUE, the printer is hidden from network users.
Horizontal resolution of the printer—in pixels per inch.
Number of print jobs since the printer was last reset.
If TRUE, the print spooler does not delete the completed jobs.
Array of the print languages natively supported.
LineData
DODCA
SimpleText
Last error code that the logical device reports.
If TRUE, the printer is not attached to a network. If both the Local and Network properties are set to TRUE, then the printer is a network printer.
Physical location of the printer.
Example: Bldg. 38, Room 1164
Marking technology the printer uses.
Other (1)
Unknown (2)
Electrophotographic LED (3)
Electrophotographic Laser (4)
Electrophotographic Other (5)
Impact Moving Head Dot Matrix 9pin (6)
Impact Moving Head Dot Matrix 24pin (7)
Impact Moving Head Dot Matrix Other (8)
Impact Moving Head Fully Formed (9)
Impact Band (10)
Impact Other (11)
Inkjet Aqueous (12)
Inkjet Solid (13)
Inkjet Other (14)
Pen (15)
Thermal Transfer (16)
Thermal Sensitive (17)
Thermal Diffusion (18)
Thermal Other (19)
Electroerosion (20)
Electrostatic (21)
Photographic Microfiche (22)
Photographic Imagesetter (23)
Photographic Other (24)
Ion Deposition (25)
eBeam (26)
Typesetter (27)
Maximum number of copies the printer can produce for one job.
Maximum number of print-stream pages the printer can render on one media sheet, such as paper.
Largest job as a byte stream, in kilobytes, that the printer can accept. A value of 0 (zero) indicates that no limit is set.
Array of detailed MIME-type explanations that the printer supports. If data is provided, then the value 47 ("MIME") must be included in the LanguagesSupported property.
Name of the printer.
If TRUE, the printer is a network printer. If both the Local and Network properties are set to TRUE, then the printer is a network printer.
Array of the paper types that the printer supports.
C2
C3
C4
C5
C6
C7
C8
ISO-Designated
JIS B0
JIS B1
JIS B2
JIS B3
JIS B4
JIS B5
JIS B6
JIS B7
JIS B8
JIS B9
JIS B10
Example: iso-a4-colored
Optional parameters for the print processor.
Example: "Copies=2"
Windows Plug and Play device identifier of the logical device.
Example: *PNP030b
Port that is used to transmit data to a printer. If a printer is connected to more than one port, the names of each port are separated by commas.
Example: LPT1:, LPT2:, LPT3:
Array of the specific power-related capabilities of a logical device.
This property is inherited from CIM_LogicalDevice.
The power management features are currently enabled, but the exact feature set is unknown or the information is unavailable.
The device can change its power state based on usage or other criteria.
Timed Power-On Supported
If TRUE, the power of the device can be managed, which means that it can be put into suspend mode. The property does not indicate that power management features are enabled, only that the logical device is capable of power management.
Array of paper sizes supported by the printer. The printer-specified names are used to represent supported paper sizes.
Example: B5 (JIS)
One of the possible states relating to this printer. This property is obsolete. In place of this property, use PrinterStatus.
Idle - for more information, see the Remarks section below.
Paused
Error
Pending Deletion
Paper Jam
Paper Out
Manual Feed
Paper Problem
Offline
I/O Active
Busy
Printing
Output Bin Full
Not Available
Waiting
Processing
Initialization
Warming Up
Toner Low
No Toner
Page Punt
User Intervention Required
Out of Memory
Door Open
Server_Unknown
Power Save
Status information for a printer that is different from information specified in the logical device Availability property.
Data type of a print job waiting for the Windows-based printing device.
Name of the print spooler that handles print jobs.
Example: SPOOLSS.DLL
Priority of the printer. Jobs on a higher priority printer are scheduled first.
If TRUE, the printer is published in the network directory service.
If TRUE, the printer buffers and queues print jobs.
If TRUE, the printer accepts only raw data to be spooled.
Name of the file used to create a separator page. This page is used to separate print jobs sent to the printer.
Name of the server that controls the printer. If this string is NULL, the printer is controlled locally.
If TRUE, the printer is available as a shared network resource.
Share name of the Windows-based printing device.
Example: "\\PRINTSERVER1\PRINTER2"
This property is obsolete; do not use. If TRUE, spooling is enabled for printer.
Date and time that a printer can start to print a job—if the printer is limited to print at specific times. This value is expressed as the time elapsed since 12:00 AM GMT (Greenwich Mean Time).
Current status of the object. Various operational and nonoperational statuses can be defined. Operational statuses include: OK, Degraded, and Pred Fail (an element, such as a SMART-enabled hard disk drive, may be functioning properly but predicting a failure in the near future). Nonoperational statuses include: Error, Starting, Stopping, and Service. The latter, Service, could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is online, yet the managed element is neither OK nor in one of the other states.
Values include the following:
OK ("OK")
Error ("Error")
Degraded ("Degraded")
Unknown ("Unknown")
Pred Fail ("Pred Fail")
Starting ("Starting")
Stopping ("Stopping")
Service ("Service")
Stressed ("Stressed")
NonRecover ("NonRecover")
No Contact ("No Contact")
Lost Comm ("Lost Comm")
State of the logical device. If this property does not apply to the logical device, the value 5 (Not Applicable) should be used.
Other (1)
Unknown (2)
Enabled (3)
Disabled (4)
Not Applicable (5)
Value of the scoping computer's CreationClassName property.
Name of the scoping system.
Date and time the printer was last reset.
Date and time that a printer can print the last job—if the printer is limited to print at specific times. This value is expressed as the time elapsed since 12:00 AM GMT (Greenwich Mean Time).
Vertical resolution, in pixels-per-inch, of the printer.
If TRUE, you can queue print jobs on the computer when the printer is offline.