Retrieves information about the video controller installed on a computer.

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

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

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

      try { WScript.Echo("Accelerator Capabilities: " + 
         (objItem.AcceleratorCapabilities.toArray()).join(",")); }
         catch(e) { WScript.Echo("Accelerator Capabilities: null"); }
      WScript.Echo("Adapter Compatibility: " + objItem.AdapterCompatibility);
      WScript.Echo("Adapter DAC Type: " + objItem.AdapterDACType);
      WScript.Echo("Adapter RAM: " + objItem.AdapterRAM);
      WScript.Echo("Availability: " + objItem.Availability);
      try { WScript.Echo("Capability Descriptions: " + 
         (objItem.CapabilityDescriptions.toArray()).join(",")); }
         catch(e) { WScript.Echo("Capability Descriptions: null"); }
      WScript.Echo("Caption: " + objItem.Caption);
      WScript.Echo("Color Table Entries: " + objItem.ColorTableEntries);
      WScript.Echo("Config Manager Error Code: " + objItem.ConfigManagerErrorCode);
      WScript.Echo("Config Manager User Config: " + objItem.ConfigManagerUserConfig);
      WScript.Echo("Creation Class Name: " + objItem.CreationClassName);
      WScript.Echo("Current Bits Per Pixel: " + objItem.CurrentBitsPerPixel);
      WScript.Echo("Current Horizontal Resolution: " + objItem.CurrentHorizontalResolution);
      WScript.Echo("Current Number Of Colors: " + objItem.CurrentNumberOfColors);
      WScript.Echo("Current Number Of Columns: " + objItem.CurrentNumberOfColumns);
      WScript.Echo("Current Number Of Rows: " + objItem.CurrentNumberOfRows);
      WScript.Echo("Current Refresh Rate: " + objItem.CurrentRefreshRate);
      WScript.Echo("Current Scan Mode: " + objItem.CurrentScanMode);
      WScript.Echo("Current Vertical Resolution: " + objItem.CurrentVerticalResolution);
      WScript.Echo("Description: " + objItem.Description);
      WScript.Echo("Device ID: " + objItem.DeviceID);
      WScript.Echo("Device Specific Pens: " + objItem.DeviceSpecificPens);
      WScript.Echo("Dither Type: " + objItem.DitherType);
      WScript.Echo("Driver Date: " + objItem.DriverDate);
      WScript.Echo("Driver Version: " + objItem.DriverVersion);
      WScript.Echo("Error Cleared: " + objItem.ErrorCleared);
      WScript.Echo("Error Description: " + objItem.ErrorDescription);
      WScript.Echo("ICM Intent: " + objItem.ICMIntent);
      WScript.Echo("ICM Method: " + objItem.ICMMethod);
      WScript.Echo("Inf Filename: " + objItem.InfFilename);
      WScript.Echo("Inf Section: " + objItem.InfSection);
      WScript.Echo("Install Date: " + objItem.InstallDate);
      WScript.Echo("Installed Display Drivers: " + objItem.InstalledDisplayDrivers);
      WScript.Echo("Last Error Code: " + objItem.LastErrorCode);
      WScript.Echo("Max Memory Supported: " + objItem.MaxMemorySupported);
      WScript.Echo("Max Number Controlled: " + objItem.MaxNumberControlled);
      WScript.Echo("Max Refresh Rate: " + objItem.MaxRefreshRate);
      WScript.Echo("Min Refresh Rate: " + objItem.MinRefreshRate);
      WScript.Echo("Monochrome: " + objItem.Monochrome);
      WScript.Echo("Name: " + objItem.Name);
      WScript.Echo("Number Of Color Planes: " + objItem.NumberOfColorPlanes);
      WScript.Echo("Number Of Video Pages: " + objItem.NumberOfVideoPages);
      WScript.Echo("PNP Device ID: " + objItem.PNPDeviceID);
      try { WScript.Echo("Power Management Capabilities: " + 
         (objItem.PowerManagementCapabilities.toArray()).join(",")); }
         catch(e) { WScript.Echo("Power Management Capabilities: null"); }
      WScript.Echo("Power Management Supported: " + objItem.PowerManagementSupported);
      WScript.Echo("Protocol Supported: " + objItem.ProtocolSupported);
      WScript.Echo("Reserved System Palette Entries: " + objItem.ReservedSystemPaletteEntries);
      WScript.Echo("Specification Version: " + objItem.SpecificationVersion);
      WScript.Echo("Status: " + objItem.Status);
      WScript.Echo("Status Info: " + objItem.StatusInfo);
      WScript.Echo("System Creation Class Name: " + objItem.SystemCreationClassName);
      WScript.Echo("System Name: " + objItem.SystemName);
      WScript.Echo("System Palette Entries: " + objItem.SystemPaletteEntries);
      WScript.Echo("Time Of Last Reset: " + objItem.TimeOfLastReset);
      WScript.Echo("Video Architecture: " + objItem.VideoArchitecture);
      WScript.Echo("Video Memory Type: " + objItem.VideoMemoryType);
      WScript.Echo("Video Mode: " + objItem.VideoMode);
      WScript.Echo("Video Mode Description: " + objItem.VideoModeDescription);
      WScript.Echo("Video Processor: " + objItem.VideoProcessor);
      WScript.Echo();
   }