Returns information about the current display settings on a computer.

This script was tested using Kixtart 2001 (412) for Microsoft Windows, available from Kixtart.org.

Kixtart
Edit|Remove
$strComputer = "."
$objWMIService = GetObject("winmgmts:\\"+ $strComputer + "\root\cimv2")
$colItems = $objWMIService.ExecQuery("Select * from Win32_DisplayConfiguration")
For Each $objItem in $colItems
    ? "Bits Per Pel:" + $objItem.BitsPerPel
    ? "Caption:" + $objItem.Caption
    ? "Description:" + $objItem.Description
    ? "Device Name:" + $objItem.DeviceName
    ? "Display Flags:" + $objItem.DisplayFlags
    ? "Display Frequency:" + $objItem.DisplayFrequency
    ? "Dither Type:" + $objItem.DitherType
    ? "Driver Version:" + $objItem.DriverVersion
    ? "ICM Intent:" + $objItem.ICMIntent
    ? "ICM Method:" + $objItem.ICMMethod
    ? "Log Pixels:" + $objItem.LogPixels
    ? "Pels Height:" + $objItem.PelsHeight
    ? "Pels Width:" + $objItem.PelsWidth
    ? "Setting ID:" + $objItem.SettingID
    ? "Specification Version:" + $objItem.SpecificationVersion
Next