HealthState - property in ROOT\StandardCimv2 namespace

HealthState in other namespaces

List of classes with HealthState local property in ROOT\StandardCimv2 namespace

propertyClassOrigin
HealthStateCIM_ManagedSystemElementCIM_ManagedSystemElement

List of classes with HealthState derived property in ROOT\StandardCimv2 namespace

propertyClassOrigin
HealthStateCIM_ConcreteJobCIM_ManagedSystemElement
HealthStateCIM_DNSProtocolEndpointCIM_ManagedSystemElement
HealthStateCIM_EnabledLogicalElementCIM_ManagedSystemElement
HealthStateCIM_FilterEntryBaseCIM_ManagedSystemElement
HealthStateCIM_IKESAEndpointCIM_ManagedSystemElement
HealthStateCIM_IPProtocolEndpointCIM_ManagedSystemElement
HealthStateCIM_IPsecSAEndpointCIM_ManagedSystemElement
HealthStateCIM_JobCIM_ManagedSystemElement
HealthStateCIM_LANEndpointCIM_ManagedSystemElement
HealthStateCIM_LogicalDeviceCIM_ManagedSystemElement
HealthStateCIM_LogicalElementCIM_ManagedSystemElement
HealthStateCIM_LogicalPortCIM_ManagedSystemElement
HealthStateCIM_NetworkPipeCIM_ManagedSystemElement
HealthStateCIM_NetworkPortCIM_ManagedSystemElement
HealthStateCIM_ProtocolEndpointCIM_ManagedSystemElement
HealthStateCIM_RemoteServiceAccessPointCIM_ManagedSystemElement
HealthStateCIM_SecurityAssociationEndpointCIM_ManagedSystemElement
HealthStateCIM_ServiceAccessPointCIM_ManagedSystemElement
HealthStateMSFT_DNSClientCIM_ManagedSystemElement
HealthStateMSFT_DNSClientServerAddressCIM_ManagedSystemElement
HealthStateMSFT_LocalPrinterPortCIM_ManagedSystemElement
HealthStateMSFT_LprPrinterPortCIM_ManagedSystemElement
HealthStateMSFT_NetAdapterCIM_ManagedSystemElement
HealthStateMSFT_NetAddressFilterCIM_ManagedSystemElement
HealthStateMSFT_NetApplicationFilterCIM_ManagedSystemElement
HealthStateMSFT_NetBaseIPProtocolCIM_ManagedSystemElement
HealthStateMSFT_NetBranchCacheCacheCIM_ManagedSystemElement
HealthStateMSFT_NetBranchCacheDataCacheCIM_ManagedSystemElement
HealthStateMSFT_NetBranchCacheDataCacheExtensionCIM_ManagedSystemElement
HealthStateMSFT_NetBranchCacheHashCacheCIM_ManagedSystemElement
HealthStateMSFT_NetBranchCachePrimaryCacheCIM_ManagedSystemElement
HealthStateMSFT_NetBranchCacheSecondaryCacheCIM_ManagedSystemElement
HealthStateMSFT_NetBranchCacheStatusCIM_ManagedSystemElement
HealthStateMSFT_NetEventNetworkAdapterCIM_ManagedSystemElement
HealthStateMSFT_NetEventPacketCaptureProviderCIM_ManagedSystemElement
HealthStateMSFT_NetEventPacketCaptureTargetCIM_ManagedSystemElement
HealthStateMSFT_NetEventProviderCIM_ManagedSystemElement
HealthStateMSFT_NetEventProviderBaseCIM_ManagedSystemElement
HealthStateMSFT_NetEventSessionCIM_ManagedSystemElement
HealthStateMSFT_NetEventVmNetworkAdapterCIM_ManagedSystemElement
HealthStateMSFT_NetEventVmSwitchCIM_ManagedSystemElement
HealthStateMSFT_NetImPlatAdapterCIM_ManagedSystemElement
HealthStateMSFT_NetInterfaceFilterCIM_ManagedSystemElement
HealthStateMSFT_NetInterfaceTypeFilterCIM_ManagedSystemElement
HealthStateMSFT_NetIPAddressCIM_ManagedSystemElement
HealthStateMSFT_NetIPInterfaceCIM_ManagedSystemElement
HealthStateMSFT_NetIPv4ProtocolCIM_ManagedSystemElement
HealthStateMSFT_NetIPv6ProtocolCIM_ManagedSystemElement
HealthStateMSFT_NetLbfoTeamMemberCIM_ManagedSystemElement
HealthStateMSFT_NetLbfoTeamNicCIM_ManagedSystemElement
HealthStateMSFT_NetMainModeSACIM_ManagedSystemElement
HealthStateMSFT_NetNeighborCIM_ManagedSystemElement
HealthStateMSFT_NetNetworkLayerSecurityFilterCIM_ManagedSystemElement
HealthStateMSFT_NetProtocolPortFilterCIM_ManagedSystemElement
HealthStateMSFT_NetQuickModeSACIM_ManagedSystemElement
HealthStateMSFT_NetServiceFilterCIM_ManagedSystemElement
HealthStateMSFT_NetSwitchTeamMemberCIM_ManagedSystemElement
HealthStateMSFT_NetTCPConnectionCIM_ManagedSystemElement
HealthStateMSFT_NetTransportConnectionCIM_ManagedSystemElement
HealthStateMSFT_NetTransportFilterCIM_ManagedSystemElement
HealthStateMSFT_NetUDPEndpointCIM_ManagedSystemElement
HealthStateMSFT_PrinterCIM_ManagedSystemElement
HealthStateMSFT_PrinterDriverCIM_ManagedSystemElement
HealthStateMSFT_PrinterPortCIM_ManagedSystemElement
HealthStateMSFT_PrintJobCIM_ManagedSystemElement
HealthStateMSFT_TcpIpPrinterPortCIM_ManagedSystemElement
HealthStateMSFT_WsdPrinterPortCIM_ManagedSystemElement

Code samples for HealthState property

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

Short VBS code - get a single specified instance of MSFT_NetTCPConnection 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\StandardCimv2:" + _
 "MSFT_NetTCPConnection.InstanceID=""::++65520++::++0""")
Wscript.Echo wmiObject.HealthState 'or other property name, see properties
See more VBS samples of MSFT_NetTCPConnection class

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

Get a specified instance of MSFT_NetTCPConnection 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\\StandardCimv2");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM MSFT_NetTCPConnection Where InstanceID=\"::++65520++::++0\"");

//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 MSFT_NetTCPConnection

Get a specified instance of MSFT_NetTCPConnection 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\StandardCimv2")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM MSFT_NetTCPConnection Where InstanceID="::++65520++::++0"")

'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