Win32_DisplayControllerConfiguration

Win32 Display Controller Configuration
root/cimv2dynamicdeprecatedkey : Name

The Win32_DisplayControllerConfiguration WMI class represents the video adapter configuration information of a computer system running Windows.

On this page

Main example

List instances

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

Examples

Filter with WQL

# WQL filter evaluated by the provider: names starting with "a" (the WQL wildcard is %)
Get-CimInstance -ClassName Win32_DisplayControllerConfiguration -Filter "Caption LIKE 'a%'" |
    Select-Object -Property Name, Description, BitsPerPixel, Caption

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

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_DisplayControllerConfiguration |
        Select-Object -Property Name, Description, BitsPerPixel, 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_DisplayControllerConfiguration
$cimClass.CimClassProperties |
    Select-Object -Property Name, CimType, Flags

Properties

14 of 14 properties
NameTypeAccessDescription
BitsPerPixeluint32read

Either the number of bits used to represent the color in this configuration, or the bits in each pixel.

Example: 8

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

Short textual description of the current object.

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

Current number of color planes used in the display configuration. A color plane is another way to represent pixel colors. Instead of assigning a single RGB value to each pixel, color planes separate the graphic into each of the primary color components (red, green, blue), and stores them in their own planes. This allows for greater color depths on 8-bit and 16-bit video systems. Present graphics systems have the bitwidth large enough to store color depth information, meaning only one color plane is needed.

Example: 1

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

Textual description of the current object.

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

Number of color indexes in a color table of a display device (if the device has a color depth of no more than 8 bits per pixel). For devices with greater color depths, -1 is returned.

Example: 256

Code
# Value of DeviceEntriesInAColorTable for each instance
Get-CimInstance -ClassName Win32_DisplayControllerConfiguration -Property Name, DeviceEntriesInAColorTable |
    Select-Object -Property Name, DeviceEntriesInAColorTable
DeviceSpecificPensuint32read

Current number of device-specific pens. A value of 0xFFFFFFFF means the device does not support pens. Pens are logical properties that can be assigned by the display controller to display devices, and are used to draw lines, borders of polygons, and text.

Example: 3

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

Current number of pixels in the horizontal direction (x-axis) of the display.

Example: 1024

Unit: pixels

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

Name of the adapter used in this configuration.

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

Refresh rate of the video adapter. A value of 0 (zero) or 1 (one) indicates a default rate is being used. A value of -1 indicates that an optimal rate is being used.

Example: 72

Unit: hertz

Code
# Value of RefreshRate for each instance
Get-CimInstance -ClassName Win32_DisplayControllerConfiguration -Property Name, RefreshRate |
    Select-Object -Property Name, RefreshRate
ReservedSystemPaletteEntriesuint32read

Current number of color index entries reserved for system use. This value is only valid for display settings that use an indexed palette. Indexed palettes are not used for color depths greater than 8 bits per pixel. If the color depth is more than 8 bits per pixel, this value is set to NULL.

Example: 20

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

Identifier by which the current object is known.

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

Current number of color index entries reserved for system use. This value is only valid for display settings that use an indexed palette. Indexed palettes are not used for color depths greater than 8 bits per pixel. If the color depth is more than 8 bits per pixel, this value is set to NULL.

Example: 20

Code
# Value of SystemPaletteEntries for each instance
Get-CimInstance -ClassName Win32_DisplayControllerConfiguration -Property Name, SystemPaletteEntries |
    Select-Object -Property Name, SystemPaletteEntries
VerticalResolutionuint32read

Current number of pixels in the vertical direction (y-axis) of the display.

Example: 768

Unit: pixels

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

User-readable description of the current screen resolution and color setting of the display.

Example: "1024 768 with 256 colors"

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

Remarks

The Win32_DisplayControllerConfiguration class is derived from CIM_Setting.

Inheritance

Superclass chain

  1. CIM_Setting
  2. Win32_DisplayControllerConfiguration

Known subclasses

No known subclass.

Requirements

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

DEPRECATED Dynamic Provider("CIMWin32") UUID("{8502C4E5-5FBB-11D2-AAC1-006008C78BC7}") AMENDMENT

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.