Name - property in ROOT\MicrosoftDNS namespace

Name in other namespaces

List of classes with Name local property in ROOT\MicrosoftDNS namespace

propertyClassOrigin
Name__EventFilter__EventFilter
Name__NAMESPACE__NAMESPACE
Name__NTLMUser9X__NTLMUser9X
Name__Provider__Provider
Name__Trustee__Trustee
NameCIM_ManagedSystemElementCIM_ManagedSystemElement
NameMicrosoftDNS_StatisticMicrosoftDNS_Statistic

List of classes with Name derived property in ROOT\MicrosoftDNS namespace

propertyClassOrigin
Name__Win32Provider__Provider
NameCIM_LogicalElementCIM_ManagedSystemElement
NameCIM_ServiceCIM_ManagedSystemElement
NameMicrosoftDNS_AAAATypeCIM_ManagedSystemElement
NameMicrosoftDNS_AFSDBTypeCIM_ManagedSystemElement
NameMicrosoftDNS_ATMATypeCIM_ManagedSystemElement
NameMicrosoftDNS_ATypeCIM_ManagedSystemElement
NameMicrosoftDNS_CacheCIM_ManagedSystemElement
NameMicrosoftDNS_CNAMETypeCIM_ManagedSystemElement
NameMicrosoftDNS_DomainCIM_ManagedSystemElement
NameMicrosoftDNS_HINFOTypeCIM_ManagedSystemElement
NameMicrosoftDNS_ISDNTypeCIM_ManagedSystemElement
NameMicrosoftDNS_KEYTypeCIM_ManagedSystemElement
NameMicrosoftDNS_MBTypeCIM_ManagedSystemElement
NameMicrosoftDNS_MDTypeCIM_ManagedSystemElement
NameMicrosoftDNS_MFTypeCIM_ManagedSystemElement
NameMicrosoftDNS_MGTypeCIM_ManagedSystemElement
NameMicrosoftDNS_MINFOTypeCIM_ManagedSystemElement
NameMicrosoftDNS_MRTypeCIM_ManagedSystemElement
NameMicrosoftDNS_MXTypeCIM_ManagedSystemElement
NameMicrosoftDNS_NSTypeCIM_ManagedSystemElement
NameMicrosoftDNS_NXTTypeCIM_ManagedSystemElement
NameMicrosoftDNS_PTRTypeCIM_ManagedSystemElement
NameMicrosoftDNS_ResourceRecordCIM_ManagedSystemElement
NameMicrosoftDNS_RootHintsCIM_ManagedSystemElement
NameMicrosoftDNS_RPTypeCIM_ManagedSystemElement
NameMicrosoftDNS_RTTypeCIM_ManagedSystemElement
NameMicrosoftDNS_ServerCIM_ManagedSystemElement
NameMicrosoftDNS_SIGTypeCIM_ManagedSystemElement
NameMicrosoftDNS_SOATypeCIM_ManagedSystemElement
NameMicrosoftDNS_SRVTypeCIM_ManagedSystemElement
NameMicrosoftDNS_TXTTypeCIM_ManagedSystemElement
NameMicrosoftDNS_WINSRTypeCIM_ManagedSystemElement
NameMicrosoftDNS_WINSTypeCIM_ManagedSystemElement
NameMicrosoftDNS_WKSTypeCIM_ManagedSystemElement
NameMicrosoftDNS_X25TypeCIM_ManagedSystemElement
NameMicrosoftDNS_ZoneCIM_ManagedSystemElement

Code samples for Name property

Get instance of WMI class using GetObject, Name property of MicrosoftDNS_AAAAType

Short VBS code - get a single specified instance of MicrosoftDNS_AAAAType 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\MicrosoftDNS:" + _
 "MicrosoftDNS_AAAAType.ContainerName=""..RootHints"",DnsServerName=""..rootdomain.com"",DomainName=""in-addr-servers.arpa."",OwnerName=""a.in-addr-servers.arpa."",RecordClass=1,RecordData=""2001:500:13::73""")
Wscript.Echo wmiObject.Name 'or other property name, see properties
See more VBS samples of MicrosoftDNS_AAAAType class

WMI query - sample windows WQL with C#, Name property of MicrosoftDNS_AAAAType

Get a specified instance of MicrosoftDNS_AAAAType 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\\MicrosoftDNS");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM MicrosoftDNS_AAAAType Where ContainerName=\"..RootHints\"DnsServerName=\"W2012SDC.rootdomain.com\"DomainName=\"in-addr-servers.arpa.\"OwnerName=\"a.in-addr-servers.arpa.\"RecordClass=\"1\"RecordData=\"2001:500:13::73\"");

//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 MicrosoftDNS_AAAAType

Get a specified instance of MicrosoftDNS_AAAAType 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\MicrosoftDNS")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM MicrosoftDNS_AAAAType Where ContainerName="..RootHints"DnsServerName="W2012SDC.rootdomain.com"DomainName="in-addr-servers.arpa."OwnerName="a.in-addr-servers.arpa."RecordClass="1"RecordData="2001:500:13::73"")

'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