Contact Info

Crumbtrail

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

HyperVVMVidPartition - WMI sample in VBScript

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 HyperVVMVidPartition WMI class can be used in ActiveXperts Network Monitor to monitor your servers.


HyperVVMVidPartition

Example(s)

Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")

Set colItems = objWMIService.ExecQuery("Select * From Win32_PerfRawData_VidPerfProvider_HyperVVMVidPartition")

For Each objItem in colItems
	WScript.Echo "Caption:" & objItem.Caption
	WScript.Echo "ChildGpaLockRequests:" & objItem.ChildGpaLockRequests
	WScript.Echo "ClientHandles:" & objItem.ClientHandles
	WScript.Echo "ClientNotifyMbps:" & objItem.ClientNotifyMbps
	WScript.Echo "CurrentWorkingSetSize:" & objItem.CurrentWorkingSetSize
	WScript.Echo "Description:" & objItem.Description
	WScript.Echo "Frequency_Object:" & objItem.Frequency_Object
	WScript.Echo "Frequency_PerfTime:" & objItem.Frequency_PerfTime
	WScript.Echo "Frequency_Sys100NS:" & objItem.Frequency_Sys100NS
	WScript.Echo "HandlersCPUID:" & objItem.HandlersCPUID
	WScript.Echo "HandlersException:" & objItem.HandlersException
	WScript.Echo "HandlersIOPort:" & objItem.HandlersIOPort
	WScript.Echo "HandlersMSR:" & objItem.HandlersMSR
	WScript.Echo "HandlersRegistered:" & objItem.HandlersRegistered
	WScript.Echo "InterceptsAPICEOI:" & objItem.InterceptsAPICEOI
	WScript.Echo "InterceptsCPUID:" & objItem.InterceptsCPUID
	WScript.Echo "InterceptsException:" & objItem.InterceptsException
	WScript.Echo "InterceptsIOPortRead:" & objItem.InterceptsIOPortRead
	WScript.Echo "InterceptsIOPortWrite:" & objItem.InterceptsIOPortWrite
	WScript.Echo "InterceptsMSRRead:" & objItem.InterceptsMSRRead
	WScript.Echo "InterceptsMSRWrite:" & objItem.InterceptsMSRWrite
	WScript.Echo "KmMemoryBlockPages:" & objItem.KmMemoryBlockPages
	WScript.Echo "LargeMbpCount:" & objItem.LargeMbpCount
	WScript.Echo "LegacyFpErrorIntercepts:" & objItem.LegacyFpErrorIntercepts
	WScript.Echo "LockedMbps:" & objItem.LockedMbps
	WScript.Echo "MappedMbps:" & objItem.MappedMbps
	WScript.Echo "MbBackedGpaPageRanges:" & objItem.MbBackedGpaPageRanges
	WScript.Echo "MbBackedGpaPages:" & objItem.MbBackedGpaPages
	WScript.Echo "MbBackedGpaRomPages:" & objItem.MbBackedGpaRomPages
	WScript.Echo "MbpFaultCount:" & objItem.MbpFaultCount
	WScript.Echo "MbpForkCount:" & objItem.MbpForkCount
	WScript.Echo "MbpRangeReads:" & objItem.MbpRangeReads
	WScript.Echo "MbpRangeWrites:" & objItem.MbpRangeWrites
	WScript.Echo "MbpReadNotifications:" & objItem.MbpReadNotifications
	WScript.Echo "MbpWriteNotifications:" & objItem.MbpWriteNotifications
	WScript.Echo "MemoryBlockPages:" & objItem.MemoryBlockPages
	WScript.Echo "MemoryBlocks:" & objItem.MemoryBlocks
	WScript.Echo "MemoryIntercepts:" & objItem.MemoryIntercepts
	WScript.Echo "MessageQueues:" & objItem.MessageQueues
	WScript.Echo "MinWorkingSetSize:" & objItem.MinWorkingSetSize
	WScript.Echo "MmioGpaPageRanges:" & objItem.MmioGpaPageRanges
	WScript.Echo "MmioGpaPages:" & objItem.MmioGpaPages
	WScript.Echo "MmioReads:" & objItem.MmioReads
	WScript.Echo "MmioWrites:" & objItem.MmioWrites
	WScript.Echo "Name:" & objItem.Name
	WScript.Echo "NumaNodeIndex:" & objItem.NumaNodeIndex
	WScript.Echo "OverheadBytes:" & objItem.OverheadBytes
	WScript.Echo "PagedOutMbpCount:" & objItem.PagedOutMbpCount
	WScript.Echo "ParentPartitionMappings:" & objItem.ParentPartitionMappings
	WScript.Echo "ReadMbpCount:" & objItem.ReadMbpCount
	WScript.Echo "ReclaimableMbps:" & objItem.ReclaimableMbps
	WScript.Echo "RemoteMbps:" & objItem.RemoteMbps
	WScript.Echo "RomMbpWrites:" & objItem.RomMbpWrites
	WScript.Echo "SharedMbps:" & objItem.SharedMbps
	WScript.Echo "Timestamp_Object:" & objItem.Timestamp_Object
	WScript.Echo "Timestamp_PerfTime:" & objItem.Timestamp_PerfTime
	WScript.Echo "Timestamp_Sys100NS:" & objItem.Timestamp_Sys100NS
	WScript.Echo "TrimmableMbps:" & objItem.TrimmableMbps
	WScript.Echo "UnpopulatedGpaAccesses:" & objItem.UnpopulatedGpaAccesses
	WScript.Echo "WriteMbpCount:" & objItem.WriteMbpCount
	WScript.Echo ""
	WScript.Echo "########"
	WScript.Echo ""
Next