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

OtherEnabledState in other namespaces

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

propertyClassOrigin
OtherEnabledStateCIM_EnabledLogicalElementCIM_EnabledLogicalElement

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

propertyClassOrigin
OtherEnabledStateCIM_AuthenticationServiceCIM_EnabledLogicalElement
OtherEnabledStateCIM_ComputerSystemCIM_EnabledLogicalElement
OtherEnabledStateCIM_ControllerConfigurationServiceCIM_EnabledLogicalElement
OtherEnabledStateCIM_EthernetPortCIM_EnabledLogicalElement
OtherEnabledStateCIM_IdentityManagementServiceCIM_EnabledLogicalElement
OtherEnabledStateCIM_IPProtocolEndpointCIM_EnabledLogicalElement
OtherEnabledStateCIM_iSCSIConfigurationServiceCIM_EnabledLogicalElement
OtherEnabledStateCIM_iSCSIConnectionCIM_EnabledLogicalElement
OtherEnabledStateCIM_iSCSIProtocolEndpointCIM_EnabledLogicalElement
OtherEnabledStateCIM_iSCSISessionCIM_EnabledLogicalElement
OtherEnabledStateCIM_LogicalDeviceCIM_EnabledLogicalElement
OtherEnabledStateCIM_LogicalPortCIM_EnabledLogicalElement
OtherEnabledStateCIM_NetworkPipeCIM_EnabledLogicalElement
OtherEnabledStateCIM_NetworkPortCIM_EnabledLogicalElement
OtherEnabledStateCIM_ObjectManagerCIM_EnabledLogicalElement
OtherEnabledStateCIM_ObjectManagerCommunicationMechanismCIM_EnabledLogicalElement
OtherEnabledStateCIM_ProtocolControllerCIM_EnabledLogicalElement
OtherEnabledStateCIM_ProtocolEndpointCIM_EnabledLogicalElement
OtherEnabledStateCIM_ReplicationServiceCIM_EnabledLogicalElement
OtherEnabledStateCIM_SCSIProtocolControllerCIM_EnabledLogicalElement
OtherEnabledStateCIM_SCSIProtocolEndpointCIM_EnabledLogicalElement
OtherEnabledStateCIM_SecurityServiceCIM_EnabledLogicalElement
OtherEnabledStateCIM_ServiceCIM_EnabledLogicalElement
OtherEnabledStateCIM_ServiceAccessPointCIM_EnabledLogicalElement
OtherEnabledStateCIM_StorageConfigurationServiceCIM_EnabledLogicalElement
OtherEnabledStateCIM_StorageExtentCIM_EnabledLogicalElement
OtherEnabledStateCIM_StorageHardwareIDManagementServiceCIM_EnabledLogicalElement
OtherEnabledStateCIM_StorageVolumeCIM_EnabledLogicalElement
OtherEnabledStateCIM_SystemCIM_EnabledLogicalElement
OtherEnabledStateCIM_TCPProtocolEndpointCIM_EnabledLogicalElement
OtherEnabledStateCIM_WBEMServiceCIM_EnabledLogicalElement
OtherEnabledStateMSFTSM_ComputerSystemCIM_EnabledLogicalElement
OtherEnabledStateMSFTSM_ObjectManagerCIM_EnabledLogicalElement
OtherEnabledStateMSFTSM_SystemCIM_EnabledLogicalElement
OtherEnabledStateMSFTSM_WSManCommunicationMechanismCIM_EnabledLogicalElement
OtherEnabledStateMSFTSMNET_EthernetPortCIM_EnabledLogicalElement
OtherEnabledStateMSFTSMNET_IPProtocolEndpointCIM_EnabledLogicalElement
OtherEnabledStateMSISCSITARGET_ControllerConfigurationServiceCIM_EnabledLogicalElement
OtherEnabledStateMSISCSITARGET_iSCSIConfigurationServiceCIM_EnabledLogicalElement
OtherEnabledStateMSISCSITARGET_iSCSIConnectionCIM_EnabledLogicalElement
OtherEnabledStateMSISCSITARGET_iSCSIProtocolEndpointCIM_EnabledLogicalElement
OtherEnabledStateMSISCSITARGET_iSCSISessionCIM_EnabledLogicalElement
OtherEnabledStateMSISCSITARGET_ReplicationServiceCIM_EnabledLogicalElement
OtherEnabledStateMSISCSITARGET_SCSIProtocolControllerCIM_EnabledLogicalElement
OtherEnabledStateMSISCSITARGET_StorageConfigurationServiceCIM_EnabledLogicalElement
OtherEnabledStateMSISCSITARGET_StorageHardwareIDManagementServiceCIM_EnabledLogicalElement
OtherEnabledStateMSISCSITARGET_StorageVolumeCIM_EnabledLogicalElement
OtherEnabledStateMSISCSITARGET_TCPProtocolEndpointCIM_EnabledLogicalElement

Code samples for OtherEnabledState property

Get instance of WMI class using GetObject, OtherEnabledState property of MSFTSMNET_EthernetPort

Short VBS code - get a single specified instance of MSFTSMNET_EthernetPort 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:" + _
 "MSFTSMNET_EthernetPort.CreationClassName=""MSFTSMNET_EthernetPort"",DeviceID=""10"",SystemCreationClassName=""MSFTSM_ComputerSystem"",SystemName=""MS iSCSITarget: ..rootdomain.com""")
Wscript.Echo wmiObject.OtherEnabledState 'or other property name, see properties
See more VBS samples of MSFTSMNET_EthernetPort class

WMI query - sample windows WQL with C#, OtherEnabledState property of MSFTSMNET_EthernetPort

Get a specified instance of MSFTSMNET_EthernetPort 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 MSFTSMNET_EthernetPort Where CreationClassName=\"MSFTSMNET_EthernetPort\"DeviceID=\"10\"SystemCreationClassName=\"MSFTSM_ComputerSystem\"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("OtherEnabledState : {0}", m["OtherEnabledState"]);
  
}

WMI query - sample windows WQL with VB.Net, OtherEnabledState property of MSFTSMNET_EthernetPort

Get a specified instance of MSFTSMNET_EthernetPort 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 MSFTSMNET_EthernetPort Where CreationClassName="MSFTSMNET_EthernetPort"DeviceID="10"SystemCreationClassName="MSFTSM_ComputerSystem"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("OtherEnabledState : {0}", mObject("OtherEnabledState"))
Next
comments powered by Disqus
WUtils.com