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

Name in other namespaces

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

propertyClassOrigin
Name__EventFilter__EventFilter
Name__NAMESPACE__NAMESPACE
Name__NTLMUser9X__NTLMUser9X
Name__Provider__Provider
Name__Trustee__Trustee
NameCIM_ManagedSystemElementCIM_ManagedSystemElement
NameCIM_NamespaceCIM_Namespace

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

propertyClassOrigin
Name__Win32Provider__Provider
NameCIM_AuthenticationServiceCIM_ManagedSystemElement
NameCIM_ComputerSystemCIM_ManagedSystemElement
NameCIM_ConcreteJobCIM_ManagedSystemElement
NameCIM_ControllerConfigurationServiceCIM_ManagedSystemElement
NameCIM_EnabledLogicalElementCIM_ManagedSystemElement
NameCIM_EthernetPortCIM_ManagedSystemElement
NameCIM_IdentityManagementServiceCIM_ManagedSystemElement
NameCIM_IPProtocolEndpointCIM_ManagedSystemElement
NameCIM_iSCSIConfigurationServiceCIM_ManagedSystemElement
NameCIM_iSCSIConnectionCIM_ManagedSystemElement
NameCIM_iSCSIProtocolEndpointCIM_ManagedSystemElement
NameCIM_iSCSISessionCIM_ManagedSystemElement
NameCIM_JobCIM_ManagedSystemElement
NameCIM_LogicalDeviceCIM_ManagedSystemElement
NameCIM_LogicalElementCIM_ManagedSystemElement
NameCIM_LogicalPortCIM_ManagedSystemElement
NameCIM_NetworkPipeCIM_ManagedSystemElement
NameCIM_NetworkPortCIM_ManagedSystemElement
NameCIM_ObjectManagerCIM_ManagedSystemElement
NameCIM_ObjectManagerCommunicationMechanismCIM_ManagedSystemElement
NameCIM_ProtocolControllerCIM_ManagedSystemElement
NameCIM_ProtocolEndpointCIM_ManagedSystemElement
NameCIM_ReplicationServiceCIM_ManagedSystemElement
NameCIM_ResourcePoolCIM_ManagedSystemElement
NameCIM_SCSIProtocolControllerCIM_ManagedSystemElement
NameCIM_SCSIProtocolEndpointCIM_ManagedSystemElement
NameCIM_SecurityServiceCIM_ManagedSystemElement
NameCIM_ServiceCIM_ManagedSystemElement
NameCIM_ServiceAccessPointCIM_ManagedSystemElement
NameCIM_SoftwareIdentityCIM_ManagedSystemElement
NameCIM_StorageConfigurationServiceCIM_ManagedSystemElement
NameCIM_StorageExtentCIM_ManagedSystemElement
NameCIM_StorageHardwareIDManagementServiceCIM_ManagedSystemElement
NameCIM_StoragePoolCIM_ManagedSystemElement
NameCIM_StorageVolumeCIM_ManagedSystemElement
NameCIM_SystemCIM_ManagedSystemElement
NameCIM_TCPProtocolEndpointCIM_ManagedSystemElement
NameCIM_WBEMServiceCIM_ManagedSystemElement
NameMSFTSM_ComputerSystemCIM_ManagedSystemElement
NameMSFTSM_NamespaceCIM_Namespace
NameMSFTSM_ObjectManagerCIM_ManagedSystemElement
NameMSFTSM_SoftwareIdentityCIM_ManagedSystemElement
NameMSFTSM_SystemCIM_ManagedSystemElement
NameMSFTSM_WSManCommunicationMechanismCIM_ManagedSystemElement
NameMSFTSMNET_EthernetPortCIM_ManagedSystemElement
NameMSFTSMNET_IPProtocolEndpointCIM_ManagedSystemElement
NameMSISCSITARGET_ConcreteJobCIM_ManagedSystemElement
NameMSISCSITARGET_ControllerConfigurationServiceCIM_ManagedSystemElement
NameMSISCSITARGET_iSCSIConfigurationServiceCIM_ManagedSystemElement
NameMSISCSITARGET_iSCSIConnectionCIM_ManagedSystemElement
NameMSISCSITARGET_iSCSIProtocolEndpointCIM_ManagedSystemElement
NameMSISCSITARGET_iSCSISessionCIM_ManagedSystemElement
NameMSISCSITARGET_ReplicationServiceCIM_ManagedSystemElement
NameMSISCSITARGET_SCSIProtocolControllerCIM_ManagedSystemElement
NameMSISCSITARGET_StorageConfigurationServiceCIM_ManagedSystemElement
NameMSISCSITARGET_StorageHardwareIDManagementServiceCIM_ManagedSystemElement
NameMSISCSITARGET_StoragePoolCIM_ManagedSystemElement
NameMSISCSITARGET_StorageVolumeCIM_ManagedSystemElement
NameMSISCSITARGET_TCPProtocolEndpointCIM_ManagedSystemElement

Code samples for Name property

Get instance of WMI class using GetObject, Name 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.Name 'or other property name, see properties
See more VBS samples of MSFTSM_Namespace class

WMI query - sample windows WQL with C#, Name 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("Name : {0}", m["Name"]);
  
}

WMI query - sample windows WQL with VB.Net, Name 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("Name : {0}", mObject("Name"))
Next
comments powered by Disqus
WUtils.com