Main example
List instances
# All instances of Win32_VideoConfiguration, with the main properties
Get-CimInstance -ClassName Win32_VideoConfiguration |
Select-Object -Property AdapterCompatibility, Name, Description, ActualColorResolutionExamples
Filter with WQL
# WQL filter evaluated by the provider: names starting with "a" (the WQL wildcard is %)
Get-CimInstance -ClassName Win32_VideoConfiguration -Filter "Caption LIKE 'a%'" |
Select-Object -Property AdapterCompatibility, Name, Description, ActualColorResolutionThe 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_VideoConfiguration |
Select-Object -Property @(
'AdapterCompatibility'
'Name'
'Description'
'ActualColorResolution'
)
} 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_VideoConfiguration
$cimClass.CimClassProperties |
Select-Object -Property Name, CimType, FlagsProperties
| Name | Type | Access | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ActualColorResolution# | uint32 | read | Indicates the current color depth of the video display. This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Unit: bits per pixel Code | |||||||||
| AdapterChipType# | string | read | Contains the name of the adapter chip. Example: s3 This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| AdapterCompatibility# key | string | read | Specifies the name of the manufacturer of the adapter. This name can be used to compare the compatibility of this device with the needs of the computer system. This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| AdapterDACType# | string | read | Indicates the name of the digital-to-analog chip (DAC) used in the adapter. This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| AdapterDescription# | string | read | Contains a description or descriptive name of the video adapter. This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| AdapterRAM# | uint32 | read | Indicates the memory size of the video adapter. Example: 16777216 This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Unit: bytes Code | |||||||||
| AdapterType# | string | read | Indicates the type of video adapter. Character Set: Alphanumeric This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| BitsPerPixel# | uint32 | read | Indicates the actual number of bits per pixel representing the display. This may be scaled to the current video setting (represented by the ActualColorResolution property) of the user. Example: 8 This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| Caption# | string | read | Short textual description of the current object. Code | |||||||||
| ColorPlanes# | uint32 | read | Indicates the current number of color planes used in the video display. A color plane is another way to represent pixel colors; instead of assigning a single RGB value to each a pixel, color planes separate the graphic into each of the primary color components (red green blue), and store them in their own planes. This allows for greater color depths on 8 and 16 bit video systems. Present graphics systems have the bitwidth large enough to store color depth information, making only one color plane necessary. Example: 1 This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| ColorTableEntries# | uint32 | read | Indicates the number of color indexes in a color table for a video display. This property is used 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 This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| Description# | string | read | Textual description of the current object. Code | |||||||||
| DeviceSpecificPens# | uint32 | read | Indicates the current number of device-specific pens. A value of 0xFFFFFFFF means the device does not support pens. Pens are used to draw lines and theborders of polygonal objects. Example: 3 This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| DriverDate# | datetime | read | Indicates the date and time the current video driver was installed. This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| HorizontalResolution# | uint32 | read | Indicates the current number of pixels in the horizontal direction (X axis) of the display. Example: 1024 This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| InfFilename# | string | read | Specifies the path to the .inf file of the video driver. Example: C:\Windows\System32\Drivers This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| InfSection# | string | read | Indicates the section of the .inf file where the Win32 video information resides. This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| InstalledDisplayDrivers# | string | read | Indicates the name of the installed video driver. This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| MonitorManufacturer# | string | read | Indicates the name of the manufacturer of the display device. Example: NEC This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| MonitorType# | string | read | Indicates the model name of the display device. Example: NEC 5FGp This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| Name# key | string | read | Contains an identifying name for the video configuration class. This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| PixelsPerXLogicalInch# | uint32 | read | Indicates the number of pixels per logical inch along the X axis (horizontal direction) of the display. This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| PixelsPerYLogicalInch# | uint32 | read | Indicates the number of pixels per logical inch along the Y axis (vertical direction) of the display. This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| RefreshRate# | uint32 | read | Indicates the refresh rate of the video configuration. A value of 0 or 1 indicates a default rate is being used. Example: 72 This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| ScanMode# | string | read | Indicates whether the display device is interlaced. This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Values (2)
Code | |||||||||
| ScreenHeight# | uint32 | read | Specifies the height of the physical screen. This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Unit: millimeters Code | |||||||||
| ScreenWidth# | uint32 | read | Specifies the width of the physical screen. This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Unit: millimeters Code | |||||||||
| SettingID# | string | read | Identifier by which the current object is known. Code | |||||||||
| SystemPaletteEntries# | uint32 | read | Iindicates the 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 This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code | |||||||||
| VerticalResolution# | uint32 | read | Indicates the current number of pixels in the vertical direction (Y axis) of the display. Example: 768 This property has been deprecated in favor of a corresponding property(s) contained in the Win32_VideoController, Win32_DesktopMonitor and//or CIM_VideoControllerResolution. Code |
Inheritance
Superclass chain
- CIM_Setting
- Win32_VideoConfiguration
Known subclasses
No known subclass.
Requirements
- Namespace
- root/cimv2
- Minimum client
- Windows Vista
- Minimum server
- Windows Server 2008
- MOF file
- CIMWin32.mof
- DLL
- CIMWin32.dll
Class qualifiers
DEPRECATED UUID("{8502C4ED-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.