- WMI Library -
WMI Libraly > Win32_NTDomain Class

Win32_NTDomain Class

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.


Properties

  • Caption
  • The Caption property is a short textual description (one-line string) of the object.

  • ClientSiteName
  • 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).

  • CreationClassName
  • 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.

  • DcSiteName
  • 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).

  • Description
  • The Description property provides a textual description of the object.

  • DnsForestName
  • 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.

  • DomainControllerAddress
  • The DomainControllerAddress property indicates the address of the discovered domain controller.

  • DomainControllerAddressType
  • 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, \\157.55.94.74) of the domain controller. DS_NETBIOS_ADDRESS = The NetBIOS name (for example, \\phoenix) of the domain controller.

  • DomainControllerName
  • The DomainControllerName property indicates the computer name of the discovered domain controller.

  • DomainGuid
  • 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).

  • DomainName
  • The DomainName property indicates the name of the domain. The DNS-style name (for example, microsoft.com.) will be returned if available.

  • DSDirectoryServiceFlag
  • Directory Service (DS) flag indicating that the domain controller is a directory service server for the domain.

  • DSDnsControllerFlag
  • Directory Service (DS) flag indicating that the Domain Controller Name is in DNS format (for example, www.mynode.com or 135.5.33.19).

  • DSDnsDomainFlag
  • Directory Service (DS) flag indicating that the DomainName is in DNS format(for example, www.mynode.com or 135.5.33.19).

  • DSDnsForestFlag
  • Directory Service (DS) flag indicating that the DnsForestName is in DNS format (for example, www.mynode.com or 135.5.33.19).

  • DSGlobalCatalogFlag
  • Directory Service (DS) flag indicating that the domain controller is a Global Catalog (GC) server for DnsForestName.

  • DSKerberosDistributionCenterFlag
  • Directory Service (DS) flag indicating that the domain controller is a Kerberos Key Distribution Center for the domain.

  • DSPrimaryDomainControllerFlag
  • Directory Service (DS) flag indicating that the domain controller is the Primary Domain Controller (PDC) of the domain.

  • DSTimeServiceFlag
  • Directory Service (DS) flag indicating that the domain controller is running the Windows Time service for the domain.

  • DSWritableFlag
  • Directory Service (DS) flag indicating that the domain controller hosts a write able DS or Security Accounts Manager (SAM).

  • InstallDate
  • 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.

  • Name
  • 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.

  • NameFormat
  • 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.

  • PrimaryOwnerContact
  • A string that provides information on how the primary system owner can be reached (e.g. phone number, email address, ...).

  • PrimaryOwnerName
  • The name of the primary system owner.

  • Roles
  • 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'.

  • Status
  • 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.


    Methods

    Method not found.

    Example WQL

    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.

    This link is Microsoft documents for "Managing Windows with WMI".
    That is VB(Visual Basic) scripting sample.
    This link is Microsoft documents for "Advanced Programming Topics in WMI .NET".
    That is VB.net(Visual Basic .net) scripting sample.

    - WMI Library -
    http://library.wmifun.net/

    WMI useful by VB,VB.Net,VC,VC.Net,VC#.Net,VBS(WSH),PowerShell for PC asset management, system monitoring and collecting hardware and software inventory.

    This website is created by Toh.
    Copyright(C) 1997-2016 WMI Fun !!. All rights reserved.
    ^ Go to the top...