Main example
List instances
# All instances of Win32_DisplayControllerConfiguration, with the main properties
Get-CimInstance -ClassName Win32_DisplayControllerConfiguration |
Select-Object -Property Name, Description, BitsPerPixel, CaptionExamples
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, CaptionThe 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, FlagsProperties
| Name | Type | Access | Description |
|---|---|---|---|
| BitsPerPixel# | uint32 | read | Either the number of bits used to represent the color in this configuration, or the bits in each pixel. Example: 8 Code |
| Caption# | string | read | Short textual description of the current object. Code |
| ColorPlanes# | uint32 | read | 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 |
| Description# | string | read | Textual description of the current object. Code |
| DeviceEntriesInAColorTable# | uint32 | read | 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 |
| DeviceSpecificPens# | uint32 | read | 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 |
| HorizontalResolution# | uint32 | read | Current number of pixels in the horizontal direction (x-axis) of the display. Example: 1024 Unit: pixels Code |
| Name# key | string | read | Name of the adapter used in this configuration. Code |
| RefreshRate# | sint32 | read | 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 |
| ReservedSystemPaletteEntries# | uint32 | read | 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 |
| SettingID# | string | read | Identifier by which the current object is known. Code |
| SystemPaletteEntries# | uint32 | read | 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 |
| VerticalResolution# | uint32 | read | Current number of pixels in the vertical direction (y-axis) of the display. Example: 768 Unit: pixels Code |
| VideoMode# | string | read | User-readable description of the current screen resolution and color setting of the display. Example: "1024 768 with 256 colors" Code |
Remarks
The Win32_DisplayControllerConfiguration class is derived from CIM_Setting.
Inheritance
Superclass chain
- CIM_Setting
- 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
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.