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

SystemCreationClassName in other namespaces

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

propertyClassOrigin
SystemCreationClassNameCIM_LogicalDeviceCIM_LogicalDevice
SystemCreationClassNameCIM_NamespaceCIM_Namespace
SystemCreationClassNameCIM_ServiceCIM_Service
SystemCreationClassNameCIM_ServiceAccessPointCIM_ServiceAccessPoint

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

propertyClassOrigin
SystemCreationClassNameCIM_AuthenticationServiceCIM_Service
SystemCreationClassNameCIM_ControllerConfigurationServiceCIM_Service
SystemCreationClassNameCIM_EthernetPortCIM_LogicalDevice
SystemCreationClassNameCIM_IdentityManagementServiceCIM_Service
SystemCreationClassNameCIM_IPProtocolEndpointCIM_ServiceAccessPoint
SystemCreationClassNameCIM_iSCSIConfigurationServiceCIM_Service
SystemCreationClassNameCIM_iSCSIProtocolEndpointCIM_ServiceAccessPoint
SystemCreationClassNameCIM_LogicalPortCIM_LogicalDevice
SystemCreationClassNameCIM_NetworkPortCIM_LogicalDevice
SystemCreationClassNameCIM_ObjectManagerCIM_Service
SystemCreationClassNameCIM_ObjectManagerCommunicationMechanismCIM_ServiceAccessPoint
SystemCreationClassNameCIM_ProtocolControllerCIM_LogicalDevice
SystemCreationClassNameCIM_ProtocolEndpointCIM_ServiceAccessPoint
SystemCreationClassNameCIM_ReplicationServiceCIM_Service
SystemCreationClassNameCIM_SCSIProtocolControllerCIM_LogicalDevice
SystemCreationClassNameCIM_SCSIProtocolEndpointCIM_ServiceAccessPoint
SystemCreationClassNameCIM_SecurityServiceCIM_Service
SystemCreationClassNameCIM_StorageConfigurationServiceCIM_Service
SystemCreationClassNameCIM_StorageExtentCIM_LogicalDevice
SystemCreationClassNameCIM_StorageHardwareIDManagementServiceCIM_Service
SystemCreationClassNameCIM_StorageVolumeCIM_LogicalDevice
SystemCreationClassNameCIM_TCPProtocolEndpointCIM_ServiceAccessPoint
SystemCreationClassNameCIM_WBEMServiceCIM_Service
SystemCreationClassNameMSFTSM_NamespaceCIM_Namespace
SystemCreationClassNameMSFTSM_ObjectManagerCIM_Service
SystemCreationClassNameMSFTSM_WSManCommunicationMechanismCIM_ServiceAccessPoint
SystemCreationClassNameMSFTSMNET_EthernetPortCIM_LogicalDevice
SystemCreationClassNameMSFTSMNET_IPProtocolEndpointCIM_ServiceAccessPoint
SystemCreationClassNameMSISCSITARGET_ControllerConfigurationServiceCIM_Service
SystemCreationClassNameMSISCSITARGET_iSCSIConfigurationServiceCIM_Service
SystemCreationClassNameMSISCSITARGET_iSCSIProtocolEndpointCIM_ServiceAccessPoint
SystemCreationClassNameMSISCSITARGET_ReplicationServiceCIM_Service
SystemCreationClassNameMSISCSITARGET_SCSIProtocolControllerCIM_LogicalDevice
SystemCreationClassNameMSISCSITARGET_StorageConfigurationServiceCIM_Service
SystemCreationClassNameMSISCSITARGET_StorageHardwareIDManagementServiceCIM_Service
SystemCreationClassNameMSISCSITARGET_StorageVolumeCIM_LogicalDevice
SystemCreationClassNameMSISCSITARGET_TCPProtocolEndpointCIM_ServiceAccessPoint

Code samples for SystemCreationClassName property

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

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

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