Caption - property in ROOT\MicrosoftDNS namespace

Caption in other namespaces

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

propertyClassOrigin
CaptionCIM_ManagedSystemElementCIM_ManagedSystemElement

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

propertyClassOrigin
CaptionCIM_LogicalElementCIM_ManagedSystemElement
CaptionCIM_ServiceCIM_ManagedSystemElement
CaptionMicrosoftDNS_AAAATypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_AFSDBTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_ATMATypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_ATypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_CacheCIM_ManagedSystemElement
CaptionMicrosoftDNS_CNAMETypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_DomainCIM_ManagedSystemElement
CaptionMicrosoftDNS_HINFOTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_ISDNTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_KEYTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_MBTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_MDTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_MFTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_MGTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_MINFOTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_MRTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_MXTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_NSTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_NXTTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_PTRTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_ResourceRecordCIM_ManagedSystemElement
CaptionMicrosoftDNS_RootHintsCIM_ManagedSystemElement
CaptionMicrosoftDNS_RPTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_RTTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_ServerCIM_ManagedSystemElement
CaptionMicrosoftDNS_SIGTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_SOATypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_SRVTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_TXTTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_WINSRTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_WINSTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_WKSTypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_X25TypeCIM_ManagedSystemElement
CaptionMicrosoftDNS_ZoneCIM_ManagedSystemElement

Code samples for Caption property

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

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

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