HealthState - property in ROOT\StandardCimv2\MS_409 namespace

HealthState in other namespaces

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

propertyClassOrigin
HealthStateCIM_ManagedSystemElementCIM_ManagedSystemElement

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

propertyClassOrigin
HealthStateCIM_ConcreteJobCIM_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_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_NetInterfaceFilterCIM_ManagedSystemElement
HealthStateMSFT_NetInterfaceTypeFilterCIM_ManagedSystemElement
HealthStateMSFT_NetIPAddressCIM_ManagedSystemElement
HealthStateMSFT_NetIPInterfaceCIM_ManagedSystemElement
HealthStateMSFT_NetIPv4ProtocolCIM_ManagedSystemElement
HealthStateMSFT_NetIPv6ProtocolCIM_ManagedSystemElement
HealthStateMSFT_NetMainModeSACIM_ManagedSystemElement
HealthStateMSFT_NetNeighborCIM_ManagedSystemElement
HealthStateMSFT_NetNetworkLayerSecurityFilterCIM_ManagedSystemElement
HealthStateMSFT_NetProtocolPortFilterCIM_ManagedSystemElement
HealthStateMSFT_NetQuickModeSACIM_ManagedSystemElement
HealthStateMSFT_NetServiceFilterCIM_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 CIM_NetworkPipe

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

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

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

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM CIM_NetworkPipe");

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

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

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM CIM_NetworkPipe")

'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