Win32_PrinterConfiguration

Win32 Printer Configuration
root/cimv2key : Name

The Win32_PrinterConfiguration WMI class represents the configuration for a printer device. This includes capabilities such as resolution, color, fonts, and orientation.

On this page

Main example

List instances

# All instances of Win32_PrinterConfiguration, with the main properties
Get-CimInstance -ClassName Win32_PrinterConfiguration |
    Select-Object -Property Name, Description, BitsPerPel, Caption

Examples

Filter with WQL

# WQL filter evaluated by the provider: Color = 1 (Monochrome (true black))
Get-CimInstance -ClassName Win32_PrinterConfiguration -Filter 'Color = 1' |
    Select-Object -Property Name, Description, BitsPerPel, Caption

The filter is evaluated by the WMI provider: less data is transferred than with Where-Object.

Decode numeric values

# Lookup table for Color (values documented by Microsoft)
$colorName = @{
    1 = 'Monochrome (true black)'
    2 = 'Color'
}
# Lookup table for DitherType (values documented by Microsoft)
$ditherTypeName = @{
    1 = 'No Dithering'
    2 = 'Coarse Brush'
    3 = 'Fine Brush'
    4 = 'Line Art'
    5 = 'Grayscale'
}

Get-CimInstance -ClassName Win32_PrinterConfiguration |
    Select-Object -Property @(
        'Name'
        'Description'
        'BitsPerPel'
        'Caption'
        @{ Name = 'Color'; Expression = { $colorName[[int]$_.Color] } }
        @{ Name = 'DitherType'; Expression = { $ditherTypeName[[int]$_.DitherType] } }
    )

Query a remote computer (CIM session)

review before running
# Name of the remote computer
$computerName = 'SERVER01'
# The CIM session (WSMan by default) can be reused for several queries
$cimSession = New-CimSession -ComputerName $computerName
try {
    Get-CimInstance -CimSession $cimSession -ClassName Win32_PrinterConfiguration |
        Select-Object -Property Name, Description, BitsPerPel, Caption
} finally {
    Remove-CimSession -CimSession $cimSession
}

WSMan (WinRM) is used by default. For a host without WinRM, create the session with -SessionOption (New-CimSessionOption -Protocol Dcom). Add -Credential to use another account.

Show the class structure

# Class structure: properties, types and flags (Key, ReadOnly…)
$cimClass = Get-CimClass -ClassName Win32_PrinterConfiguration
$cimClass.CimClassProperties |
    Select-Object -Property Name, CimType, Flags

Properties

33 of 33 properties
NameTypeAccessDescription
BitsPerPeluint32read

Number of bits used to represent the color in this configuration (the bits per pixel). This property is obsolete. Instead, use properties in the Win32_VideoController, Win32_DesktopMonitor, or CIM_VideoControllerResolution classes to determine how color is represented.

Code
# Value of BitsPerPel for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, BitsPerPel |
    Select-Object -Property Name, BitsPerPel
Captionstringread

Short textual description of the current object.

Code
# Value of Caption for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, Caption |
    Select-Object -Property Name, Caption
Collatebooleanread

If TRUE, the pages that are printed should be collated. To collate is to print out the entire document before printing the next copy, as opposed to printing out each page of the document the required number of times.

This property is ignored unless the printer driver indicates support for collation.

Code
# Value of Collate for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, Collate |
    Select-Object -Property Name, Collate
Coloruint32read

Color of the document. Some color printers have the capability to print using true black instead of a combination of cyan, magenta, and yellow (CMY). This usually creates darker and sharper text for documents. This option is only useful for color printers that support true black printing.

Values (2)
ValueLabelDescription
1Monochrome (true black)
2Color
Code
# Value of Color for each instance
# Lookup table for Color (values documented by Microsoft)
$colorName = @{
    1 = 'Monochrome (true black)'
    2 = 'Color'
}
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, Color |
    Select-Object -Property @(
        'Name'
        @{ Name = 'Color'; Expression = { $colorName[[int]$_.Color] } }
    )
Copiesuint32read

Number of copies to be printed. The printer driver must support printing multi-page copies.

Example: 2

Code
# Value of Copies for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, Copies |
    Select-Object -Property Name, Copies
Descriptionstringread

Textual description of the current object.

Code
# Value of Description for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, Description |
    Select-Object -Property Name, Description
DeviceNamestringread

Friendly name of the printer. This name is unique to the type of printer and may be truncated because of the limitations of the string from which it is derived.

Example: "PCL/HP LaserJet"

Code
# Value of DeviceName for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, DeviceName |
    Select-Object -Property Name, DeviceName
DisplayFlagsuint32read

Indicates whether the display device is color or monochrome and whether the type of scanning is noninterlaced or interlaced. This property is obsolete. Instead, use display properties such as the DisplayType property of the Win32_DesktopMonitor class.

Code
# Value of DisplayFlags for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, DisplayFlags |
    Select-Object -Property Name, DisplayFlags
DisplayFrequencyuint32read

Displays the vertical refresh rate. The refresh rate for a monitor is the number of times the screen is redrawn per second (frequency). This property is obsolete. Instead, use properties in the Win32_VideoController, Win32_DesktopMonitor, or CIM_VideoControllerResolution class.

Code
# Value of DisplayFrequency for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, DisplayFrequency |
    Select-Object -Property Name, DisplayFrequency
DitherTypeuint32read

Dither type of the printer. This property can assume predefined values of 1 to 5, or driver-defined values from 6 to 256. Line art dithering is a special dithering method that produces well defined borders between black, white, and gray scalings. It is not suitable for images that include continuous graduations in intensity and hue, such as scanned photographs.

Values (5)
ValueLabelDescription
1No Dithering
2Coarse Brush
3Fine Brush
4Line Art
5Grayscale
Code
# Value of DitherType for each instance
# Lookup table for DitherType (values documented by Microsoft)
$ditherTypeName = @{
    1 = 'No Dithering'
    2 = 'Coarse Brush'
    3 = 'Fine Brush'
    4 = 'Line Art'
    5 = 'Grayscale'
}
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, DitherType |
    Select-Object -Property @(
        'Name'
        @{ Name = 'DitherType'; Expression = { $ditherTypeName[[int]$_.DitherType] } }
    )
DriverVersionuint32read

Version number of the Windows-based printer driver. The version numbers are created and maintained by the driver manufacturer.

Code
# Value of DriverVersion for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, DriverVersion |
    Select-Object -Property Name, DriverVersion
Duplexbooleanread

If TRUE, printing is done on both sides. If FALSE, printing is done on only one side of the media.

Code
# Value of Duplex for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, Duplex |
    Select-Object -Property Name, Duplex
FormNamestringread

Not supported.

Code
# Value of FormName for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, FormName |
    Select-Object -Property Name, FormName
HorizontalResolutionuint32read

Print resolution in dots per inch along the x-axis (width) of the print job (similar to the obsolete XResolution property). This value is only set when the PrintQuality property of this class is positive.

Code
# Value of HorizontalResolution for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, HorizontalResolution |
    Select-Object -Property Name, HorizontalResolution
ICMIntentuint32read

Specific value of one of the three possible color matching methods (called intents) that should be used by default. ICM applications establish intents by using the ICM functions. This property can assume predefined values of 1 to 3, or driver-defined values from 4 to 256. Non-ICM applications can use this value to determine how the printer handles color printing jobs.

Values (3)
ValueLabelDescription
1Saturation
2Contrast
3Exact Color
Code
# Value of ICMIntent for each instance
# Lookup table for ICMIntent (values documented by Microsoft)
$iCMIntentName = @{
    1 = 'Saturation'
    2 = 'Contrast'
    3 = 'Exact Color'
}
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, ICMIntent |
    Select-Object -Property @(
        'Name'
        @{ Name = 'ICMIntent'; Expression = { $iCMIntentName[[int]$_.ICMIntent] } }
    )
ICMMethoduint32read

How ICM is handled. For a non-ICM application, this property determines if ICM is enabled or disabled. For ICM applications, the system examines this property to determine which part of the computer system handles ICM support.

Values (4)
ValueLabelDescription
1Disabled
2Windows
3Device Driver
4Device
Code
# Value of ICMMethod for each instance
# Lookup table for ICMMethod (values documented by Microsoft)
$iCMMethodName = @{
    1 = 'Disabled'
    2 = 'Windows'
    3 = 'Device Driver'
    4 = 'Device'
}
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, ICMMethod |
    Select-Object -Property @(
        'Name'
        @{ Name = 'ICMMethod'; Expression = { $iCMMethodName[[int]$_.ICMMethod] } }
    )
LogPixelsuint32read

Number of pixels per logical inch. This obsolete property is valid only with devices that work with pixels, which excludes devices such as printers. There is no replacement value that applies to printers.

Code
# Value of LogPixels for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, LogPixels |
    Select-Object -Property Name, LogPixels
MediaTypeuint32read

Type of media on which the printer prints. The property can be set to a predefined value or a driver-defined value greater than or equal to 256.

Values (3)
ValueLabelDescription
1Standard
2Transparency
3Glossy
Code
# Value of MediaType for each instance
# Lookup table for MediaType (values documented by Microsoft)
$mediaTypeName = @{
    1 = 'Standard'
    2 = 'Transparency'
    3 = 'Glossy'
}
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, MediaType |
    Select-Object -Property @(
        'Name'
        @{ Name = 'MediaType'; Expression = { $mediaTypeName[[int]$_.MediaType] } }
    )
Name keystringread

Name of the printer with which this configuration is associated. This value matches the Name property of the associated Win32_Printer instance.

Code
# Value of Name for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name |
    Select-Object -Property Name
Orientationuint32read

Printing orientation of the paper.

Values (2)
ValueLabelDescription
1Portrait
2Landscape
Code
# Value of Orientation for each instance
# Lookup table for Orientation (values documented by Microsoft)
$orientationName = @{
    1 = 'Portrait'
    2 = 'Landscape'
}
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, Orientation |
    Select-Object -Property @(
        'Name'
        @{ Name = 'Orientation'; Expression = { $orientationName[[int]$_.Orientation] } }
    )
PaperLengthuint32read

Length of the paper. To determine the size of the paper in inches, divide this value by 254.

Example: 2794

Code
# Value of PaperLength for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, PaperLength |
    Select-Object -Property Name, PaperLength
PaperSizestringread

Size of the paper. The possible sizes are found in the PaperSizesSupported property of the associated Win32_Printer class.

Example: "A4 or Letter".

Code
# Value of PaperSize for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, PaperSize |
    Select-Object -Property Name, PaperSize
PaperWidthuint32read

Width of the paper. To determine the size of the paper in inches, divide this value by 254.

Example: 2159

Code
# Value of PaperWidth for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, PaperWidth |
    Select-Object -Property Name, PaperWidth
PelsHeightuint32read

This property is not supported.

Code
# Value of PelsHeight for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, PelsHeight |
    Select-Object -Property Name, PelsHeight
PelsWidthuint32read

This property is not supported.

Code
# Value of PelsWidth for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, PelsWidth |
    Select-Object -Property Name, PelsWidth
PrintQualityuint32read

One of four quality levels of the print job. If a positive value is specified, the quality is measured in dots per inch.

Values (4)
ValueLabelDescription
-1Draft
-2Low
-3Medium
-4High
Code
# Value of PrintQuality for each instance
# Lookup table for PrintQuality (values documented by Microsoft)
$printQualityName = @{
    -4 = 'High'
    -3 = 'Medium'
    -2 = 'Low'
    -1 = 'Draft'
}
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, PrintQuality |
    Select-Object -Property @(
        'Name'
        @{ Name = 'PrintQuality'; Expression = { $printQualityName[[int]$_.PrintQuality] } }
    )
Scaleuint32read

Factor by which the printed output is to be scaled. For example, a scale of 75 reduces the print output to 3/4 its original height and width.

Code
# Value of Scale for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, Scale |
    Select-Object -Property Name, Scale
SettingIDstringread

Identifier by which the current object is known.

Code
# Value of SettingID for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, SettingID |
    Select-Object -Property Name, SettingID
SpecificationVersionuint32read

Version number of the initialization data for the device associated with the Windows-based printer.

Code
# Value of SpecificationVersion for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, SpecificationVersion |
    Select-Object -Property Name, SpecificationVersion
TTOptionuint32read

Indicates how TrueType fonts should be printed.

Values (3)
ValueLabelDescription
1BitmapPrints TrueType fonts as graphics. This is the default action for dot-matrix printers.
2DownloadDownloads TrueType fonts as soft fonts. This is the default action for printers that use the Printer Control Language (PCL).
3SubstituteSubstitutes device fonts for TrueType fonts. This is the default action for PostScript printers.
Code
# Value of TTOption for each instance
# Lookup table for TTOption (values documented by Microsoft)
$tTOptionName = @{
    1 = 'Bitmap'
    2 = 'Download'
    3 = 'Substitute'
}
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, TTOption |
    Select-Object -Property @(
        'Name'
        @{ Name = 'TTOption'; Expression = { $tTOptionName[[int]$_.TTOption] } }
    )
VerticalResolutionuint32read

Print resolution along the y-axis (height) of the print job (similar to the obsolete YResolution property). This value is only set when the PrintQuality property of this class is positive.

Code
# Value of VerticalResolution for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, VerticalResolution |
    Select-Object -Property Name, VerticalResolution
XResolutionuint32read

This property is obsolete. Use the HorizontalResolution property instead.

Code
# Value of XResolution for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, XResolution |
    Select-Object -Property Name, XResolution
YResolutionuint32read

This property is obsolete. Use the VerticalResolution property instead.

Code
# Value of YResolution for each instance
Get-CimInstance -ClassName Win32_PrinterConfiguration -Property Name, YResolution |
    Select-Object -Property Name, YResolution

Remarks

The Win32_PrinterConfiguration class is derived from CIM_Setting.

Overview

Before you can determine how to best distribute and use your printing resources, you must have a detailed knowledge of those resources. For example, Department A might have only three printers compared with five printers in Department B. However, if the printers in Department A can print 20 pages per minute and the printers in Department B can print only 5 pages per minute, users in Department A actually have more printing capacity. Without knowing the detailed capabilities of these printers, you might erroneously conclude that Department A is short on printing capacity and thus purchase additional printers that end up going unused.

WMI includes two classes, Win32_Printer and Win32_PrinterConfiguration, which can be used to return detailed information about all the printers installed on a computer.

Inheritance

Superclass chain

  1. CIM_Setting
  2. Win32_PrinterConfiguration

Known subclasses

No known subclass.

Requirements

Namespace
root/cimv2
Minimum client
Windows Vista
Minimum server
Windows Server 2008
MOF file
Win32_Printer.mof
DLL
CIMWin32.dll

Microsoft source

Source: Microsoft Learn

Descriptions, properties and methods come from the Microsoft documentation (MicrosoftDocs/win32 repository), published under the CC BY 4.0 licence. Formatting and translations are specific to this site; the PowerShell examples are written for it.