Contact Info

Crumbtrail

ActiveXperts.com » Administration » Scripts » WMI Performance Counters » Powershell

PCVideoController - WMI sample in Powershell

The foundations for Manageability in Windows 2019/2012/2008/ and Windows 10/8/7/Vista/XP are Windows Management Instrumentation (WMI; formerly WBEM) and WMI extensions for Windows Driver Model (WDM).

ActiveXperts Network Monitor provides the ability to build monitor check routines based on WMI. ActiveXperts has collected more than a hundred WMI samples. You can use these samples as a base for new check routines you can write yourself.

On this site, you can find many WMI samples.

The PCVideoController WMI class can be used in ActiveXperts Network Monitor to monitor your servers.


PCVideoController

Example(s)

$strComputer = "."

$objWMi = get-wmiobject -computername localhost -Query "Select * from CIM_PCVideoController"

foreach ($obj in $objWmi)
{
	write-host "AcceleratorCapabilities:" $obj.AcceleratorCapabilities
	write-host "AdapterCompatibility:" $obj.AdapterCompatibility
	write-host "AdapterDACType:" $obj.AdapterDACType
	write-host "AdapterRAM:" $obj.AdapterRAM
	write-host "Availability:" $obj.Availability
	write-host "CapabilityDescriptions:" $obj.CapabilityDescriptions
	write-host "Caption:" $obj.Caption
	write-host "ColorTableEntries:" $obj.ColorTableEntries
	write-host "ConfigManagerErrorCode:" $obj.ConfigManagerErrorCode
	write-host "ConfigManagerUserConfig:" $obj.ConfigManagerUserConfig
	write-host "CreationClassName:" $obj.CreationClassName
	write-host "CurrentBitsPerPixel:" $obj.CurrentBitsPerPixel
	write-host "CurrentHorizontalResolution:" $obj.CurrentHorizontalResolution
	write-host "CurrentNumberOfColors:" $obj.CurrentNumberOfColors
	write-host "CurrentNumberOfColumns:" $obj.CurrentNumberOfColumns
	write-host "CurrentNumberOfRows:" $obj.CurrentNumberOfRows
	write-host "CurrentRefreshRate:" $obj.CurrentRefreshRate
	write-host "CurrentScanMode:" $obj.CurrentScanMode
	write-host "CurrentVerticalResolution:" $obj.CurrentVerticalResolution
	write-host "Description:" $obj.Description
	write-host "DeviceID:" $obj.DeviceID
	write-host "DeviceSpecificPens:" $obj.DeviceSpecificPens
	write-host "DitherType:" $obj.DitherType
	write-host "DriverDate:" $obj.DriverDate
	write-host "DriverVersion:" $obj.DriverVersion
	write-host "ErrorCleared:" $obj.ErrorCleared
	write-host "ErrorDescription:" $obj.ErrorDescription
	write-host "ICMIntent:" $obj.ICMIntent
	write-host "ICMMethod:" $obj.ICMMethod
	write-host "InfFilename:" $obj.InfFilename
	write-host "InfSection:" $obj.InfSection
	write-host "InstallDate:" $obj.InstallDate
	write-host "InstalledDisplayDrivers:" $obj.InstalledDisplayDrivers
	write-host "LastErrorCode:" $obj.LastErrorCode
	write-host "MaxMemorySupported:" $obj.MaxMemorySupported
	write-host "MaxNumberControlled:" $obj.MaxNumberControlled
	write-host "MaxRefreshRate:" $obj.MaxRefreshRate
	write-host "MinRefreshRate:" $obj.MinRefreshRate
	write-host "Monochrome:" $obj.Monochrome
	write-host "Name:" $obj.Name
	write-host "NumberOfColorPlanes:" $obj.NumberOfColorPlanes
	write-host "NumberOfVideoPages:" $obj.NumberOfVideoPages
	write-host "PNPDeviceID:" $obj.PNPDeviceID
	write-host "PowerManagementCapabilities:" $obj.PowerManagementCapabilities
	write-host "PowerManagementSupported:" $obj.PowerManagementSupported
	write-host "ProtocolSupported:" $obj.ProtocolSupported
	write-host "ReservedSystemPaletteEntries:" $obj.ReservedSystemPaletteEntries
	write-host "SpecificationVersion:" $obj.SpecificationVersion
	write-host "Status:" $obj.Status
	write-host "StatusInfo:" $obj.StatusInfo
	write-host "SystemCreationClassName:" $obj.SystemCreationClassName
	write-host "SystemName:" $obj.SystemName
	write-host "SystemPaletteEntries:" $obj.SystemPaletteEntries
	write-host "TimeOfLastReset:" $obj.TimeOfLastReset
	write-host "VideoArchitecture:" $obj.VideoArchitecture
	write-host "VideoMemoryType:" $obj.VideoMemoryType
	write-host "VideoMode:" $obj.VideoMode
	write-host "VideoModeDescription:" $obj.VideoModeDescription
	write-host "VideoProcessor:" $obj.VideoProcessor
	write-host
	write-host "########"
	write-host
}