CreationClassName - property in ROOT\StandardCimv2\MS_409 namespace

CreationClassName in other namespaces

List of classes with CreationClassName local property in ROOT\StandardCimv2\MS_409 namespace

propertyClassOrigin
CreationClassNameCIM_FilterEntryBaseCIM_FilterEntryBase
CreationClassNameCIM_LogicalDeviceCIM_LogicalDevice
CreationClassNameCIM_PolicyActionCIM_PolicyAction
CreationClassNameCIM_PolicyRuleCIM_PolicyRule
CreationClassNameCIM_ServiceAccessPointCIM_ServiceAccessPoint

List of classes with CreationClassName derived property in ROOT\StandardCimv2\MS_409 namespace

propertyClassOrigin
CreationClassNameCIM_IKEActionCIM_PolicyAction
CreationClassNameCIM_IKESAEndpointCIM_ServiceAccessPoint
CreationClassNameCIM_IPProtocolEndpointCIM_ServiceAccessPoint
CreationClassNameCIM_IPsecSAEndpointCIM_ServiceAccessPoint
CreationClassNameCIM_LANEndpointCIM_ServiceAccessPoint
CreationClassNameCIM_LogicalPortCIM_LogicalDevice
CreationClassNameCIM_NetworkPortCIM_LogicalDevice
CreationClassNameCIM_ProtocolEndpointCIM_ServiceAccessPoint
CreationClassNameCIM_RemoteServiceAccessPointCIM_ServiceAccessPoint
CreationClassNameCIM_SAActionCIM_PolicyAction
CreationClassNameCIM_SANegotiationActionCIM_PolicyAction
CreationClassNameCIM_SARuleCIM_PolicyRule
CreationClassNameCIM_SecurityAssociationEndpointCIM_ServiceAccessPoint
CreationClassNameMSFT_NetAdapterCIM_LogicalDevice
CreationClassNameMSFT_NetAddressFilterCIM_FilterEntryBase
CreationClassNameMSFT_NetApplicationFilterCIM_FilterEntryBase
CreationClassNameMSFT_NetBaseIPProtocolCIM_ServiceAccessPoint
CreationClassNameMSFT_NetConSecRuleCIM_PolicyRule
CreationClassNameMSFT_NetFirewallRuleCIM_PolicyRule
CreationClassNameMSFT_NetIKEAuthSetCIM_PolicyAction
CreationClassNameMSFT_NetIKECryptoSetCIM_PolicyAction
CreationClassNameMSFT_NetIKEMMCryptoSetCIM_PolicyAction
CreationClassNameMSFT_NetIKEP1AuthSetCIM_PolicyAction
CreationClassNameMSFT_NetIKEP2AuthSetCIM_PolicyAction
CreationClassNameMSFT_NetIKEQMCryptoSetCIM_PolicyAction
CreationClassNameMSFT_NetInterfaceFilterCIM_FilterEntryBase
CreationClassNameMSFT_NetInterfaceTypeFilterCIM_FilterEntryBase
CreationClassNameMSFT_NetIPAddressCIM_ServiceAccessPoint
CreationClassNameMSFT_NetIPInterfaceCIM_ServiceAccessPoint
CreationClassNameMSFT_NetIPv4ProtocolCIM_ServiceAccessPoint
CreationClassNameMSFT_NetIPv6ProtocolCIM_ServiceAccessPoint
CreationClassNameMSFT_NetMainModeRuleCIM_PolicyRule
CreationClassNameMSFT_NetMainModeSACIM_ServiceAccessPoint
CreationClassNameMSFT_NetNeighborCIM_ServiceAccessPoint
CreationClassNameMSFT_NetNetworkLayerSecurityFilterCIM_FilterEntryBase
CreationClassNameMSFT_NetProtocolPortFilterCIM_FilterEntryBase
CreationClassNameMSFT_NetQuickModeSACIM_ServiceAccessPoint
CreationClassNameMSFT_NetSARuleCIM_PolicyRule
CreationClassNameMSFT_NetServiceFilterCIM_FilterEntryBase
CreationClassNameMSFT_NetTCPSettingCIM_PolicyAction
CreationClassNameMSFT_NetTransportFilterCIM_FilterEntryBase
CreationClassNameMSFT_NetUDPSettingCIM_PolicyAction

Code samples for CreationClassName property

Get instance of WMI class using GetObject, CreationClassName property of CIM_NetworkPort

Short VBS code - get a single specified instance of CIM_NetworkPort 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\StandardCimv2\MS_409:" + _
 "CIM_NetworkPort.CreationClassName=""Value"",DeviceID=""Value"",SystemCreationClassName=""Value"",SystemName=""Value""")
Wscript.Echo wmiObject.CreationClassName 'or other property name, see properties
See more VBS samples of CIM_NetworkPort class

WMI query - sample windows WQL with C#, CreationClassName property of CIM_NetworkPort

Get a specified instance of CIM_NetworkPort 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\\StandardCimv2\\MS_409");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM CIM_NetworkPort");

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

WMI query - sample windows WQL with VB.Net, CreationClassName property of CIM_NetworkPort

Get a specified instance of CIM_NetworkPort 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\StandardCimv2\MS_409")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM CIM_NetworkPort")

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