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

Caption in other namespaces

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

propertyClassOrigin
CaptionCIM_ManagedElementCIM_ManagedElement

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

propertyClassOrigin
CaptionCIM_AuthenticationServiceCIM_ManagedElement
CaptionCIM_AuthorizedPrivilegeCIM_ManagedElement
CaptionCIM_CapabilitiesCIM_ManagedElement
CaptionCIM_ComputerSystemCIM_ManagedElement
CaptionCIM_ConcreteJobCIM_ManagedElement
CaptionCIM_ControllerConfigurationServiceCIM_ManagedElement
CaptionCIM_EnabledLogicalElementCIM_ManagedElement
CaptionCIM_EthernetPortCIM_ManagedElement
CaptionCIM_IdentityCIM_ManagedElement
CaptionCIM_IdentityManagementServiceCIM_ManagedElement
CaptionCIM_IPProtocolEndpointCIM_ManagedElement
CaptionCIM_iSCSICapabilitiesCIM_ManagedElement
CaptionCIM_iSCSIConfigurationCapabilitiesCIM_ManagedElement
CaptionCIM_iSCSIConfigurationServiceCIM_ManagedElement
CaptionCIM_iSCSIConnectionCIM_ManagedElement
CaptionCIM_iSCSIProtocolEndpointCIM_ManagedElement
CaptionCIM_iSCSISessionCIM_ManagedElement
CaptionCIM_iSCSISessionSettingsCIM_ManagedElement
CaptionCIM_JobCIM_ManagedElement
CaptionCIM_LogicalDeviceCIM_ManagedElement
CaptionCIM_LogicalElementCIM_ManagedElement
CaptionCIM_LogicalPortCIM_ManagedElement
CaptionCIM_ManagedSystemElementCIM_ManagedElement
CaptionCIM_NamespaceCIM_ManagedElement
CaptionCIM_NetworkPipeCIM_ManagedElement
CaptionCIM_NetworkPortCIM_ManagedElement
CaptionCIM_ObjectManagerCIM_ManagedElement
CaptionCIM_ObjectManagerCommunicationMechanismCIM_ManagedElement
CaptionCIM_PrivilegeCIM_ManagedElement
CaptionCIM_ProtocolControllerCIM_ManagedElement
CaptionCIM_ProtocolControllerMaskingCapabilitiesCIM_ManagedElement
CaptionCIM_ProtocolEndpointCIM_ManagedElement
CaptionCIM_ReplicationServiceCIM_ManagedElement
CaptionCIM_ReplicationServiceCapabilitiesCIM_ManagedElement
CaptionCIM_ResourcePoolCIM_ManagedElement
CaptionCIM_SCSIProtocolControllerCIM_ManagedElement
CaptionCIM_SCSIProtocolEndpointCIM_ManagedElement
CaptionCIM_SecurityServiceCIM_ManagedElement
CaptionCIM_ServiceCIM_ManagedElement
CaptionCIM_ServiceAccessPointCIM_ManagedElement
CaptionCIM_SettingDataCIM_ManagedElement
CaptionCIM_SoftwareIdentityCIM_ManagedElement
CaptionCIM_StorageCapabilitiesCIM_ManagedElement
CaptionCIM_StorageClientSettingDataCIM_ManagedElement
CaptionCIM_StorageConfigurationCapabilitiesCIM_ManagedElement
CaptionCIM_StorageConfigurationServiceCIM_ManagedElement
CaptionCIM_StorageExtentCIM_ManagedElement
CaptionCIM_StorageHardwareIDCIM_ManagedElement
CaptionCIM_StorageHardwareIDManagementServiceCIM_ManagedElement
CaptionCIM_StoragePoolCIM_ManagedElement
CaptionCIM_StorageReplicationCapabilitiesCIM_ManagedElement
CaptionCIM_StorageSettingCIM_ManagedElement
CaptionCIM_StorageVolumeCIM_ManagedElement
CaptionCIM_SystemCIM_ManagedElement
CaptionCIM_TCPProtocolEndpointCIM_ManagedElement
CaptionCIM_WBEMServiceCIM_ManagedElement
CaptionMSFTSM_ComputerSystemCIM_ManagedElement
CaptionMSFTSM_NamespaceCIM_ManagedElement
CaptionMSFTSM_ObjectManagerCIM_ManagedElement
CaptionMSFTSM_SoftwareIdentityCIM_ManagedElement
CaptionMSFTSM_SystemCIM_ManagedElement
CaptionMSFTSM_WSManCommunicationMechanismCIM_ManagedElement
CaptionMSFTSMNET_EthernetPortCIM_ManagedElement
CaptionMSFTSMNET_IPProtocolEndpointCIM_ManagedElement
CaptionMSISCSITARGET_AuthorizedPrivilegeCIM_ManagedElement
CaptionMSISCSITARGET_ConcreteJobCIM_ManagedElement
CaptionMSISCSITARGET_ControllerConfigurationServiceCIM_ManagedElement
CaptionMSISCSITARGET_iSCSICapabilitiesCIM_ManagedElement
CaptionMSISCSITARGET_iSCSIConfigurationCapabilitiesCIM_ManagedElement
CaptionMSISCSITARGET_iSCSIConfigurationServiceCIM_ManagedElement
CaptionMSISCSITARGET_iSCSIConnectionCIM_ManagedElement
CaptionMSISCSITARGET_iSCSIProtocolEndpointCIM_ManagedElement
CaptionMSISCSITARGET_iSCSISessionCIM_ManagedElement
CaptionMSISCSITARGET_iSCSISessionSettingsCIM_ManagedElement
CaptionMSISCSITARGET_ProtocolControllerMaskingCapabilitiesCIM_ManagedElement
CaptionMSISCSITARGET_ReplicationServiceCIM_ManagedElement
CaptionMSISCSITARGET_ReplicationServiceCapabilitiesCIM_ManagedElement
CaptionMSISCSITARGET_SCSIProtocolControllerCIM_ManagedElement
CaptionMSISCSITARGET_StorageCapabilitiesCIM_ManagedElement
CaptionMSISCSITARGET_StorageClientSettingDataCIM_ManagedElement
CaptionMSISCSITARGET_StorageConfigurationCapabilitiesCIM_ManagedElement
CaptionMSISCSITARGET_StorageConfigurationServiceCIM_ManagedElement
CaptionMSISCSITARGET_StorageHardwareIDCIM_ManagedElement
CaptionMSISCSITARGET_StorageHardwareIDManagementServiceCIM_ManagedElement
CaptionMSISCSITARGET_StoragePoolCIM_ManagedElement
CaptionMSISCSITARGET_StorageReplicationCapabilitiesCIM_ManagedElement
CaptionMSISCSITARGET_StorageSettingCIM_ManagedElement
CaptionMSISCSITARGET_StorageVolumeCIM_ManagedElement
CaptionMSISCSITARGET_TCPProtocolEndpointCIM_ManagedElement

Code samples for Caption property

Get instance of WMI class using GetObject, Caption property of MSFTSM_Namespace

Short VBS code - get a single specified instance of MSFTSM_Namespace 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_Namespace.CreationClassName=""MSFTSM_NameSpace"",Name=""root\\interop"",ObjectManagerCreationClassName=""MSFTSM_ObjectManager"",ObjectManagerName=""MSFT:SM.ObjectManager"",SystemCreationClassName=""MSFTSM_System"",SystemName=""MS iSCSITarget: ..rootdomain.com""")
Wscript.Echo wmiObject.Caption 'or other property name, see properties
See more VBS samples of MSFTSM_Namespace class

WMI query - sample windows WQL with C#, Caption property of MSFTSM_Namespace

Get a specified instance of MSFTSM_Namespace 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_Namespace Where CreationClassName=\"MSFTSM_NameSpace\"Name=\"root\\\\interop\"ObjectManagerCreationClassName=\"MSFTSM_ObjectManager\"ObjectManagerName=\"MSFT:SM.ObjectManager\"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("Caption : {0}", m["Caption"]);
  
}

WMI query - sample windows WQL with VB.Net, Caption property of MSFTSM_Namespace

Get a specified instance of MSFTSM_Namespace 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_Namespace Where CreationClassName="MSFTSM_NameSpace"Name="root\\interop"ObjectManagerCreationClassName="MSFTSM_ObjectManager"ObjectManagerName="MSFT:SM.ObjectManager"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("Caption : {0}", mObject("Caption"))
Next
comments powered by Disqus
WUtils.com