The Win32_NTDomain class represents a NT Domain. A domain is a single security boundary of a Windows NT computer network. Active Directory is made up of one or more domains. On a standalone workstation, the domain is the computer itself. A domain can span more than one physical location. Every domain has its own security policies and security relationships with other domains. When multiple domains are connected by trust relationships and share a common schema, configuration, and global catalog, you have a domain tree. Multiple domain trees can be connected together into a forest. All the domains in a forest also share a common schema, configuration, and global catalog.
Namespace value is root/CIMV2.
WMI Provider value is CIMWin32a.
The Caption property is a short textual description (one-line string) of the object.
The ClientSiteName property indicates the name of the site where the domain controller is configured to be in. This value may be NULL if the site that the computer named by ComputerName cannot be found (for example, if the DS administrator has not associated the subnet that the computer is in with a valid site).
The CreationClassName property indicates the name of the class or the subclass used in the creation of an instance. When used with the other key properties of this class, this property allows all instances of this class and its subclasses to be uniquely identified.
The DcSiteName property indicates the name of the site where the domain controller is located. This value may be NULL if the domain controller is not in a site (for example, the domain controller is a Windows NT 4.0 domain controller).
The Description property provides a textual description of the object.
The DnsForestName property indicates the name of the domain at the root of the DS tree. The DNS-style name (for example, microsoft.com.) will be returned if available.
The DomainControllerAddress property indicates the address of the discovered domain controller.
Indicates the type of address specified in DomainControllerAddress. The following valid values are presented in order, DS_INET_ADDRESS = Address is a string IP address (for example, \\22.214.171.124) of the domain controller. DS_NETBIOS_ADDRESS = The NetBIOS name (for example, \\phoenix) of the domain controller.
The DomainControllerName property indicates the computer name of the discovered domain controller.
The GUID of the domain. This member will be zero if the domain controller does not have a Domain GUID (for example, the domain controller is not a Windows 2000 domain controller).
The DomainName property indicates the name of the domain. The DNS-style name (for example, microsoft.com.) will be returned if available.
Directory Service (DS) flag indicating that the domain controller is a directory service server for the domain.
Directory Service (DS) flag indicating that the Domain Controller Name is in DNS format (for example, www.mynode.com or 126.96.36.199).
Directory Service (DS) flag indicating that the DomainName is in DNS format(for example, www.mynode.com or 188.8.131.52).
Directory Service (DS) flag indicating that the DnsForestName is in DNS format (for example, www.mynode.com or 184.108.40.206).
Directory Service (DS) flag indicating that the domain controller is a Global Catalog (GC) server for DnsForestName.
Directory Service (DS) flag indicating that the domain controller is a Kerberos Key Distribution Center for the domain.
Directory Service (DS) flag indicating that the domain controller is the Primary Domain Controller (PDC) of the domain.
Directory Service (DS) flag indicating that the domain controller is running the Windows Time service for the domain.
Directory Service (DS) flag indicating that the domain controller hosts a write able DS or Security Accounts Manager (SAM).
The InstallDate property is datetime value indicating when the object was installed. A lack of a value does not indicate that the object is not installed.
The Name property defines the label by which the object is known. When subclassed, the Name property can be overridden to be a Key property.
The CIM_System object and its derivatives are top level objects of CIM. They provide the scope for numerous components. Having unique system keys is required. A heuristic can be defined in individual system subclasses to attempt to always generate the same system name key. The NameFormat property identifies how the system name was generated, using the subclass' heuristic.
A string that provides information on how the primary system owner can be reached (e.g. phone number, email address, ...).
The name of the primary system owner.
An array (bag) of strings that specify the roles this System plays in the IT-environment. Subclasses of System may override this property to define explicit Roles values. Alternately, a Working Group may describe the heuristics, conventions and guidelines for specifying Roles. For example, for an instance of a networking system, the Roles property might contain the string, 'Switch' or 'Bridge'.
The Status property is a string indicating the current status of the object. Various operational and non-operational statuses can be defined. Operational statuses are "OK", "Degraded" and "Pred Fail". "Pred Fail" indicates that an element may be functioning properly but predicting a failure in the near future. An example is a SMART-enabled hard drive. Non-operational statuses can also be specified. These are "Error", "Starting", "Stopping" and "Service". The latter, "Service", could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is on-line, yet the managed element is neither "OK" nor in one of the other states.
Method not found.
SELECT * FROM Win32_NTDomain
About this site information
This contents is created by WMI having class information.
WMI Environment is Windows Server 2008 R2 Enterprise Edition.
is Microsoft documents for "Managing Windows with WMI"
That is VB(Visual Basic) scripting sample.
is Microsoft documents for "Advanced Programming Topics in WMI .NET"
That is VB.net(Visual Basic .net) scripting sample.