Returns information about the video adapters installed in a computer.

JavaScript
Edit|Remove
var wbemFlagReturnImmediately = 0x10;
var wbemFlagForwardOnly = 0x20;

   var objWMIService = GetObject("winmgmts:\\\\.\\root\\CIMV2");
   var colItems = objWMIService.ExecQuery("SELECT * FROM Win32_DisplayControllerConfiguration", "WQL",
                                          wbemFlagReturnImmediately | wbemFlagForwardOnly);

   var enumItems = new Enumerator(colItems);
   for (; !enumItems.atEnd(); enumItems.moveNext()) {
      var objItem = enumItems.item();

      WScript.Echo("Bits Per Pixel: " + objItem.BitsPerPixel);
      WScript.Echo("Caption: " + objItem.Caption);
      WScript.Echo("Color Planes: " + objItem.ColorPlanes);
      WScript.Echo("Description: " + objItem.Description);
      WScript.Echo("Device Entries In A Color Table: " + objItem.DeviceEntriesInAColorTable);
      WScript.Echo("Device Specific Pens: " + objItem.DeviceSpecificPens);
      WScript.Echo("Horizontal Resolution: " + objItem.HorizontalResolution);
      WScript.Echo("Name: " + objItem.Name);
      WScript.Echo("Refresh Rate: " + objItem.RefreshRate);
      WScript.Echo("Reserved System Palette Entries: " + objItem.ReservedSystemPaletteEntries);
      WScript.Echo("Setting ID: " + objItem.SettingID);
      WScript.Echo("System Palette Entries: " + objItem.SystemPaletteEntries);
      WScript.Echo("Vertical Resolution: " + objItem.VerticalResolution);
      WScript.Echo("Video Mode: " + objItem.VideoMode);
      WScript.Echo();
   }