HealthState - property in ROOT\virtualization\v2 namespace

HealthState in other namespaces

List of classes with HealthState local property in ROOT\virtualization\v2 namespace

propertyClassOrigin
HealthStateCIM_ManagedSystemElementCIM_ManagedSystemElement
HealthStateMsvm_SummaryInformationMsvm_SummaryInformation

List of classes with HealthState derived property in ROOT\virtualization\v2 namespace

propertyClassOrigin
HealthStateCIM_BIOSElementCIM_ManagedSystemElement
HealthStateCIM_CDROMDriveCIM_ManagedSystemElement
HealthStateCIM_ComputerSystemCIM_ManagedSystemElement
HealthStateCIM_ConcreteJobCIM_ManagedSystemElement
HealthStateCIM_ControllerCIM_ManagedSystemElement
HealthStateCIM_DesktopMonitorCIM_ManagedSystemElement
HealthStateCIM_DiskDriveCIM_ManagedSystemElement
HealthStateCIM_DisketteDriveCIM_ManagedSystemElement
HealthStateCIM_DisplayCIM_ManagedSystemElement
HealthStateCIM_DisplayControllerCIM_ManagedSystemElement
HealthStateCIM_DVDDriveCIM_ManagedSystemElement
HealthStateCIM_DynamicForwardingEntryCIM_ManagedSystemElement
HealthStateCIM_EnabledLogicalElementCIM_ManagedSystemElement
HealthStateCIM_EthernetPortCIM_ManagedSystemElement
HealthStateCIM_FCPortCIM_ManagedSystemElement
HealthStateCIM_ForwardingServiceCIM_ManagedSystemElement
HealthStateCIM_IDEControllerCIM_ManagedSystemElement
HealthStateCIM_JobCIM_ManagedSystemElement
HealthStateCIM_LANEndpointCIM_ManagedSystemElement
HealthStateCIM_LogicalDeviceCIM_ManagedSystemElement
HealthStateCIM_LogicalDiskCIM_ManagedSystemElement
HealthStateCIM_LogicalElementCIM_ManagedSystemElement
HealthStateCIM_LogicalPortCIM_ManagedSystemElement
HealthStateCIM_MediaAccessDeviceCIM_ManagedSystemElement
HealthStateCIM_MemoryCIM_ManagedSystemElement
HealthStateCIM_MetricServiceCIM_ManagedSystemElement
HealthStateCIM_NetworkPortCIM_ManagedSystemElement
HealthStateCIM_NetworkServiceCIM_ManagedSystemElement
HealthStateCIM_PointingDeviceCIM_ManagedSystemElement
HealthStateCIM_ProcessorCIM_ManagedSystemElement
HealthStateCIM_ProtocolControllerCIM_ManagedSystemElement
HealthStateCIM_ProtocolEndpointCIM_ManagedSystemElement
HealthStateCIM_ResourcePoolCIM_ManagedSystemElement
HealthStateCIM_ResourcePoolConfigurationServiceCIM_ManagedSystemElement
HealthStateCIM_SCSIProtocolControllerCIM_ManagedSystemElement
HealthStateCIM_SerialControllerCIM_ManagedSystemElement
HealthStateCIM_ServiceCIM_ManagedSystemElement
HealthStateCIM_ServiceAccessPointCIM_ManagedSystemElement
HealthStateCIM_SoftwareElementCIM_ManagedSystemElement
HealthStateCIM_StorageExtentCIM_ManagedSystemElement
HealthStateCIM_SwitchPortCIM_ManagedSystemElement
HealthStateCIM_SwitchServiceCIM_ManagedSystemElement
HealthStateCIM_SystemCIM_ManagedSystemElement
HealthStateCIM_TapeDriveCIM_ManagedSystemElement
HealthStateCIM_TransparentBridgingServiceCIM_ManagedSystemElement
HealthStateCIM_USBDeviceCIM_ManagedSystemElement
HealthStateCIM_UserDeviceCIM_ManagedSystemElement
HealthStateCIM_VideoHeadCIM_ManagedSystemElement
HealthStateCIM_VirtualSystemManagementServiceCIM_ManagedSystemElement
HealthStateCIM_VirtualSystemMigrationServiceCIM_ManagedSystemElement
HealthStateCIM_VirtualSystemSnapshotServiceCIM_ManagedSystemElement
HealthStateCIM_VLANEndpointCIM_ManagedSystemElement
HealthStateCIM_WiFiEndpointCIM_ManagedSystemElement
HealthStateCIM_WiFiPortCIM_ManagedSystemElement
HealthStateMsvm_BIOSElementCIM_ManagedSystemElement
HealthStateMsvm_ComputerSystemCIM_ManagedSystemElement
HealthStateMsvm_ConcreteJobCIM_ManagedSystemElement
HealthStateMsvm_CopyFileToGuestJobCIM_ManagedSystemElement
HealthStateMsvm_DiskDriveCIM_ManagedSystemElement
HealthStateMsvm_DisketteControllerCIM_ManagedSystemElement
HealthStateMsvm_DisketteDriveCIM_ManagedSystemElement
HealthStateMsvm_DVDDriveCIM_ManagedSystemElement
HealthStateMsvm_DynamicForwardingEntryCIM_ManagedSystemElement
HealthStateMsvm_EmulatedEthernetPortCIM_ManagedSystemElement
HealthStateMsvm_EthernetSwitchExtensionCIM_ManagedSystemElement
HealthStateMsvm_EthernetSwitchPortCIM_ManagedSystemElement
HealthStateMsvm_ExternalEthernetPortCIM_ManagedSystemElement
HealthStateMsvm_ExternalFcPortCIM_ManagedSystemElement
HealthStateMsvm_FcEndpointCIM_ManagedSystemElement
HealthStateMsvm_FcSwitchPortCIM_ManagedSystemElement
HealthStateMsvm_GuestFileServiceCIM_ManagedSystemElement
HealthStateMsvm_GuestServiceCIM_ManagedSystemElement
HealthStateMsvm_GuestServiceInterfaceComponentCIM_ManagedSystemElement
HealthStateMsvm_HeartbeatComponentCIM_ManagedSystemElement
HealthStateMsvm_IDEControllerCIM_ManagedSystemElement
HealthStateMsvm_ImageManagementServiceCIM_ManagedSystemElement
HealthStateMsvm_InstalledEthernetSwitchExtensionCIM_ManagedSystemElement
HealthStateMsvm_InternalEthernetPortCIM_ManagedSystemElement
HealthStateMsvm_KeyboardCIM_ManagedSystemElement
HealthStateMsvm_KvpExchangeComponentCIM_ManagedSystemElement
HealthStateMsvm_LANEndpointCIM_ManagedSystemElement
HealthStateMsvm_LogicalDiskCIM_ManagedSystemElement
HealthStateMsvm_MemoryCIM_ManagedSystemElement
HealthStateMsvm_MetricServiceCIM_ManagedSystemElement
HealthStateMsvm_MigrationJobCIM_ManagedSystemElement
HealthStateMsvm_MountedStorageImageCIM_ManagedSystemElement
HealthStateMsvm_NumaNodeCIM_ManagedSystemElement
HealthStateMsvm_Physical3dGraphicsProcessorCIM_ManagedSystemElement
HealthStateMsvm_PlannedComputerSystemCIM_ManagedSystemElement
HealthStateMsvm_ProcessorCIM_ManagedSystemElement
HealthStateMsvm_ProcessorPoolCIM_ManagedSystemElement
HealthStateMsvm_Ps2MouseCIM_ManagedSystemElement
HealthStateMsvm_RdvComponentCIM_ManagedSystemElement
HealthStateMsvm_ReplicationProviderCIM_ManagedSystemElement
HealthStateMsvm_ReplicationRelationshipCIM_ManagedSystemElement
HealthStateMsvm_ReplicationServiceCIM_ManagedSystemElement
HealthStateMsvm_ResourcePoolCIM_ManagedSystemElement
HealthStateMsvm_ResourcePoolConfigurationServiceCIM_ManagedSystemElement
HealthStateMsvm_S3DisplayControllerCIM_ManagedSystemElement
HealthStateMsvm_SCSIProtocolControllerCIM_ManagedSystemElement
HealthStateMsvm_SerialControllerCIM_ManagedSystemElement
HealthStateMsvm_SerialPortCIM_ManagedSystemElement
HealthStateMsvm_ShutdownComponentCIM_ManagedSystemElement
HealthStateMsvm_StorageJobCIM_ManagedSystemElement
HealthStateMsvm_Synth3dVideoPoolCIM_ManagedSystemElement
HealthStateMsvm_Synthetic3DDisplayControllerCIM_ManagedSystemElement
HealthStateMsvm_Synthetic3DServiceCIM_ManagedSystemElement
HealthStateMsvm_SyntheticDisplayControllerCIM_ManagedSystemElement
HealthStateMsvm_SyntheticEthernetPortCIM_ManagedSystemElement
HealthStateMsvm_SyntheticFcPortCIM_ManagedSystemElement
HealthStateMsvm_SyntheticMouseCIM_ManagedSystemElement
HealthStateMsvm_TerminalConnectionCIM_ManagedSystemElement
HealthStateMsvm_TerminalServiceCIM_ManagedSystemElement
HealthStateMsvm_TimeSyncComponentCIM_ManagedSystemElement
HealthStateMsvm_TransparentBridgingServiceCIM_ManagedSystemElement
HealthStateMsvm_VideoHeadCIM_ManagedSystemElement
HealthStateMsvm_VirtualEthernetSwitchCIM_ManagedSystemElement
HealthStateMsvm_VirtualEthernetSwitchManagementServiceCIM_ManagedSystemElement
HealthStateMsvm_VirtualFcSwitchCIM_ManagedSystemElement
HealthStateMsvm_VirtualSystemManagementServiceCIM_ManagedSystemElement
HealthStateMsvm_VirtualSystemMigrationServiceCIM_ManagedSystemElement
HealthStateMsvm_VirtualSystemSnapshotServiceCIM_ManagedSystemElement
HealthStateMsvm_VLANEndpointCIM_ManagedSystemElement
HealthStateMsvm_VssComponentCIM_ManagedSystemElement
HealthStateMsvm_WiFiEndpointCIM_ManagedSystemElement
HealthStateMsvm_WiFiPortCIM_ManagedSystemElement

Code samples for HealthState property

Get instance of WMI class using GetObject, HealthState property of Msvm_ResourcePool

Short VBS code - get a single specified instance of Msvm_ResourcePool class or get a default unnamed instance (singleton) of the class, using one single command GetObject with exact path of the wmi object.

'https://wutils.com/wmi/
Dim wmiObject
Set wmiObject = GetObject( _
 "WINMGMTS:\\.\ROOT\virtualization\v2:" + _
 "Msvm_ResourcePool.InstanceID=""Microsoft:118C3BE5-0D31-4804-85F0-5C6074ABEA8F""")
Wscript.Echo wmiObject.HealthState 'or other property name, see properties
See more VBS samples of Msvm_ResourcePool class

WMI query - sample windows WQL with C#, HealthState property of Msvm_ResourcePool

Get a specified instance of Msvm_ResourcePool by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this c# sample code.
See in another language: VBScript, VB.Net.
//https://wutils.com/wmi/

//Project -> Add reference -> System.Management
//using System.Management;

//create a management scope object
ManagementScope scope = new ManagementScope("\\\\.\\ROOT\\virtualization\\v2");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM Msvm_ResourcePool Where InstanceID=\"Microsoft:118C3BE5-0D31-4804-85F0-5C6074ABEA8F\"");

//create object searcher
ManagementObjectSearcher searcher =
                        new ManagementObjectSearcher(scope, query);

//get a collection of WMI objects
ManagementObjectCollection queryCollection = searcher.Get();

//enumerate the collection.
foreach (ManagementObject m in queryCollection) 
{
  // access properties of the WMI object
  Console.WriteLine("HealthState : {0}", m["HealthState"]);
  
}

WMI query - sample windows WQL with VB.Net, HealthState property of Msvm_ResourcePool

Get a specified instance of Msvm_ResourcePool by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this VB.Net sample code.
See in another language: VBScript, C#
'Project -> Add reference -> System.Management
'Imports System.Management

'Get the namespace management scope
Dim Scope As New ManagementScope("\\.\ROOT\virtualization\v2")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM Msvm_ResourcePool Where InstanceID="Microsoft:118C3BE5-0D31-4804-85F0-5C6074ABEA8F"")

'Create object searcher
Dim Searcher As New ManagementObjectSearcher(Scope, Query)

'Get a collection of WMI objects
Dim queryCollection As ManagementObjectCollection = Searcher.Get

'Enumerate wmi object 
For Each mObject As ManagementObject In queryCollection
  'write out some property value
  Console.WriteLine("HealthState : {0}", mObject("HealthState"))
Next
comments powered by Disqus
WUtils.com