OperationalStatus - property in ROOT\CIMV2\storage\iscsitarget namespace

OperationalStatus in other namespaces

List of classes with OperationalStatus local property in ROOT\CIMV2\storage\iscsitarget namespace

propertyClassOrigin
OperationalStatusCIM_ManagedSystemElementCIM_ManagedSystemElement

List of classes with OperationalStatus derived property in ROOT\CIMV2\storage\iscsitarget namespace

propertyClassOrigin
OperationalStatusCIM_AuthenticationServiceCIM_ManagedSystemElement
OperationalStatusCIM_ComputerSystemCIM_ManagedSystemElement
OperationalStatusCIM_ConcreteJobCIM_ManagedSystemElement
OperationalStatusCIM_ControllerConfigurationServiceCIM_ManagedSystemElement
OperationalStatusCIM_EnabledLogicalElementCIM_ManagedSystemElement
OperationalStatusCIM_EthernetPortCIM_ManagedSystemElement
OperationalStatusCIM_IdentityManagementServiceCIM_ManagedSystemElement
OperationalStatusCIM_IPProtocolEndpointCIM_ManagedSystemElement
OperationalStatusCIM_iSCSIConfigurationServiceCIM_ManagedSystemElement
OperationalStatusCIM_iSCSIConnectionCIM_ManagedSystemElement
OperationalStatusCIM_iSCSIProtocolEndpointCIM_ManagedSystemElement
OperationalStatusCIM_iSCSISessionCIM_ManagedSystemElement
OperationalStatusCIM_JobCIM_ManagedSystemElement
OperationalStatusCIM_LogicalDeviceCIM_ManagedSystemElement
OperationalStatusCIM_LogicalElementCIM_ManagedSystemElement
OperationalStatusCIM_LogicalPortCIM_ManagedSystemElement
OperationalStatusCIM_NetworkPipeCIM_ManagedSystemElement
OperationalStatusCIM_NetworkPortCIM_ManagedSystemElement
OperationalStatusCIM_ObjectManagerCIM_ManagedSystemElement
OperationalStatusCIM_ObjectManagerCommunicationMechanismCIM_ManagedSystemElement
OperationalStatusCIM_ProtocolControllerCIM_ManagedSystemElement
OperationalStatusCIM_ProtocolEndpointCIM_ManagedSystemElement
OperationalStatusCIM_ReplicationServiceCIM_ManagedSystemElement
OperationalStatusCIM_ResourcePoolCIM_ManagedSystemElement
OperationalStatusCIM_SCSIProtocolControllerCIM_ManagedSystemElement
OperationalStatusCIM_SCSIProtocolEndpointCIM_ManagedSystemElement
OperationalStatusCIM_SecurityServiceCIM_ManagedSystemElement
OperationalStatusCIM_ServiceCIM_ManagedSystemElement
OperationalStatusCIM_ServiceAccessPointCIM_ManagedSystemElement
OperationalStatusCIM_SoftwareIdentityCIM_ManagedSystemElement
OperationalStatusCIM_StorageConfigurationServiceCIM_ManagedSystemElement
OperationalStatusCIM_StorageExtentCIM_ManagedSystemElement
OperationalStatusCIM_StorageHardwareIDManagementServiceCIM_ManagedSystemElement
OperationalStatusCIM_StoragePoolCIM_ManagedSystemElement
OperationalStatusCIM_StorageVolumeCIM_ManagedSystemElement
OperationalStatusCIM_SystemCIM_ManagedSystemElement
OperationalStatusCIM_TCPProtocolEndpointCIM_ManagedSystemElement
OperationalStatusCIM_WBEMServiceCIM_ManagedSystemElement
OperationalStatusMSFTSM_ComputerSystemCIM_ManagedSystemElement
OperationalStatusMSFTSM_ObjectManagerCIM_ManagedSystemElement
OperationalStatusMSFTSM_SoftwareIdentityCIM_ManagedSystemElement
OperationalStatusMSFTSM_SystemCIM_ManagedSystemElement
OperationalStatusMSFTSM_WSManCommunicationMechanismCIM_ManagedSystemElement
OperationalStatusMSFTSMNET_EthernetPortCIM_ManagedSystemElement
OperationalStatusMSFTSMNET_IPProtocolEndpointCIM_ManagedSystemElement
OperationalStatusMSISCSITARGET_ConcreteJobCIM_ManagedSystemElement
OperationalStatusMSISCSITARGET_ControllerConfigurationServiceCIM_ManagedSystemElement
OperationalStatusMSISCSITARGET_iSCSIConfigurationServiceCIM_ManagedSystemElement
OperationalStatusMSISCSITARGET_iSCSIConnectionCIM_ManagedSystemElement
OperationalStatusMSISCSITARGET_iSCSIProtocolEndpointCIM_ManagedSystemElement
OperationalStatusMSISCSITARGET_iSCSISessionCIM_ManagedSystemElement
OperationalStatusMSISCSITARGET_ReplicationServiceCIM_ManagedSystemElement
OperationalStatusMSISCSITARGET_SCSIProtocolControllerCIM_ManagedSystemElement
OperationalStatusMSISCSITARGET_StorageConfigurationServiceCIM_ManagedSystemElement
OperationalStatusMSISCSITARGET_StorageHardwareIDManagementServiceCIM_ManagedSystemElement
OperationalStatusMSISCSITARGET_StoragePoolCIM_ManagedSystemElement
OperationalStatusMSISCSITARGET_StorageVolumeCIM_ManagedSystemElement
OperationalStatusMSISCSITARGET_TCPProtocolEndpointCIM_ManagedSystemElement

Code samples for OperationalStatus property

Get instance of WMI class using GetObject, OperationalStatus property of MSFTSM_WSManCommunicationMechanism

Short VBS code - get a single specified instance of MSFTSM_WSManCommunicationMechanism 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\CIMV2\storage\iscsitarget:" + _
 "MSFTSM_WSManCommunicationMechanism.CreationClassName=""MSFTSM_WSManCommunicationMechanism"",Name=""MSFT:SM.WS-Management"",SystemCreationClassName=""MSFTSM_System"",SystemName=""MS iSCSITarget: ..rootdomain.com""")
Wscript.Echo wmiObject.OperationalStatus 'or other property name, see properties
See more VBS samples of MSFTSM_WSManCommunicationMechanism class

WMI query - sample windows WQL with C#, OperationalStatus property of MSFTSM_WSManCommunicationMechanism

Get a specified instance of MSFTSM_WSManCommunicationMechanism 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\\CIMV2\\storage\\iscsitarget");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM MSFTSM_WSManCommunicationMechanism Where CreationClassName=\"MSFTSM_WSManCommunicationMechanism\"Name=\"MSFT:SM.WS-Management\"SystemCreationClassName=\"MSFTSM_System\"SystemName=\"MS iSCSITarget: W2012SDC.rootdomain.com\"");

//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("OperationalStatus : {0}", m["OperationalStatus"]);
  
}

WMI query - sample windows WQL with VB.Net, OperationalStatus property of MSFTSM_WSManCommunicationMechanism

Get a specified instance of MSFTSM_WSManCommunicationMechanism 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\CIMV2\storage\iscsitarget")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM MSFTSM_WSManCommunicationMechanism Where CreationClassName="MSFTSM_WSManCommunicationMechanism"Name="MSFT:SM.WS-Management"SystemCreationClassName="MSFTSM_System"SystemName="MS iSCSITarget: W2012SDC.rootdomain.com"")

'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("OperationalStatus : {0}", mObject("OperationalStatus"))
Next
comments powered by Disqus
WUtils.com