Skip to content

Get-AdmRootDSE

Gets the root of a directory server information tree.

Description

The Get-ADRootDSE cmdlet gets the object that represents the root of the directory information tree of a directory server. This tree provides information about the configuration and capabilities of the directory server, such as the distinguished name of the configuration container, the current time on the directory server, and the functional levels of the directory server and the domain.

Examples

Example 1: Get the root of a directory server information tree

Get-AdmRootDSE

ConfigurationNamingContext    : CN=Configuration,DC=Fabricam,DC=com
CurrentTime                   : 1/14/2020 11:39:40 AM
DefaultNamingContext          : DC=aurora,DC=Fabricam,DC=com
DnsHostName                   : FABRIKAM-DC1.Fabrikam.com
DomainControllerFunctionality : Windows2008R2
DomainFunctionality           : Windows2003Domain
DSServiceName                 : CN=NTDS Settings,CN=BLUEBALL,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=Fabricam,DC=com
ForestFunctionality           : Windows2000Forest
GlobalCatalogReady            : True
HighestCommittedUSN           : 65089208
LdapServiceName               : softerra.llc:blueball$@AURORA.SOFTERRA.LLC
NamingContexts                : {DC=Fabrikam,DC=com, CN=Configuration,DC=Fabrikam,DC=com, CN=Schema,CN=Configuration,DC=Fabrikam,DC=com, DC=DomainDnsZones,DC=Fabrikam,DC=com...}
RootDomainNamingContext       : DC=Fabricam,DC=com
SchemaNamingContext           : CN=Schema,CN=Configuration,DC=Fabricam,DC=com
ServerName                    : CN=FABRIKAM-DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=Fabrikam,DC=com
SubschemaSubentry             : CN=Aggregate,CN=Schema,CN=Configuration,DC=Fabricam,DC=com
SupportedCapabilities         : {1.2.840.113556.1.4.800
                                (LDAP_CAP_ACTIVE_DIRECTORY_OID),
                                1.2.840.113556.1.4.1670
                                (LDAP_CAP_ACTIVE_DIRECTORY_V51_OID),
                                1.2.840.113556.1.4.1791
                                (LDAP_CAP_ACTIVE_DIRECTORY_LDAP_INTEG_OID),
                                1.2.840.113556.1.4.1935
                                (LDAP_CAP_ACTIVE_DIRECTORY_V61_OID)...}
SupportedControl              : {1.2.840.113556.1.4.319
                                (LDAP_PAGED_RESULT_OID_STRING),
                                1.2.840.113556.1.4.801
                                (LDAP_SERVER_SD_FLAGS_OID),
                                1.2.840.113556.1.4.473 (LDAP_SERVER_SORT_OID),
                                1.2.840.113556.1.4.528
                                (LDAP_SERVER_NOTIFICATION_OID)...}
SupportedLDAPPolicies         : {MaxPoolThreads, MaxDatagramRecv,
                                MaxReceiveBuffer, InitRecvTimeout...}
SupportedLDAPVersion          : {3, 2}
SupportedSaslMechanisms       : {GSSAPI, GSS-SPNEGO, EXTERNAL, DIGEST-MD5}
Synchronized                  : True

This command gets the root of the directory server information tree of the directory server from the default domain controller.

Example 2: Get the root of a directory server information tree by using credentials

Get-AdmRootDSE -Server "FABRIKAM-ADLDS1.Fabrikam.com:60000" -Credential "FABRIKAM\User1"

ConfigurationNamingContext    : CN=Configuration,DC=Fabricam,DC=com
CurrentTime                   : 1/14/2020 11:39:40 AM
DefaultNamingContext          : DC=aurora,DC=Fabricam,DC=com
DnsHostName                   : FABRIKAM-DC1.Fabrikam.com
DomainControllerFunctionality : Windows2008R2
DomainFunctionality           : Windows2003Domain
DSServiceName                 : CN=NTDS Settings,CN=BLUEBALL,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=Fabricam,DC=com
ForestFunctionality           : Windows2000Forest
GlobalCatalogReady            : True
HighestCommittedUSN           : 65089208
LdapServiceName               : softerra.llc:blueball$@AURORA.SOFTERRA.LLC
NamingContexts                : {DC=Fabrikam,DC=com, CN=Configuration,DC=Fabrikam,DC=com, CN=Schema,CN=Configuration,DC=Fabrikam,DC=com, DC=DomainDnsZones,DC=Fabrikam,DC=com...}
RootDomainNamingContext       : DC=Fabricam,DC=com
SchemaNamingContext           : CN=Schema,CN=Configuration,DC=Fabricam,DC=com
ServerName                    : CN=FABRIKAM-DC1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=Fabrikam,DC=com
SubschemaSubentry             : CN=Aggregate,CN=Schema,CN=Configuration,DC=Fabricam,DC=com
SupportedCapabilities         : {1.2.840.113556.1.4.800
                                (LDAP_CAP_ACTIVE_DIRECTORY_OID),
                                1.2.840.113556.1.4.1670
                                (LDAP_CAP_ACTIVE_DIRECTORY_V51_OID),
                                1.2.840.113556.1.4.1791
                                (LDAP_CAP_ACTIVE_DIRECTORY_LDAP_INTEG_OID),
                                1.2.840.113556.1.4.1935
                                (LDAP_CAP_ACTIVE_DIRECTORY_V61_OID)...}
SupportedControl              : {1.2.840.113556.1.4.319
                                (LDAP_PAGED_RESULT_OID_STRING),
                                1.2.840.113556.1.4.801
                                (LDAP_SERVER_SD_FLAGS_OID),
                                1.2.840.113556.1.4.473 (LDAP_SERVER_SORT_OID),
                                1.2.840.113556.1.4.528
                                (LDAP_SERVER_NOTIFICATION_OID)...}
SupportedLDAPPolicies         : {MaxPoolThreads, MaxDatagramRecv,
                                MaxReceiveBuffer, InitRecvTimeout...}
SupportedLDAPVersion          : {3, 2}
SupportedSaslMechanisms       : {GSSAPI, GSS-SPNEGO, EXTERNAL, DIGEST-MD5}
Synchronized                  : True

This command gets the root of the directory server information tree of FABRIKAM-ADLDS1 using the FABRIKAM\User1 credentials.

Parameters

-AdaxesService

Specifies the DNS name of an Adaxes service that will be used to execute this cmdlet. If this parameter is not specified, and the cmdlet is running from an Adaxes Active Directory provider drive, the value for this parameter can be determined from the current path. For example, if the current path is Adaxes:/example.com, the Adaxes service on example.com will be used. If the parameter is not specified and the service DNS name can’t be determined from the current path, the cmdlet will access Active Directory directly.

  • Type:
  • String

  • Position:

  • Named

  • Required:

  • False

  • Default Value:

  • None

  • Accept pipeline input:

  • False

  • Accept wildcard characters:

  • False

-Credential

Specifies the user account credentials to use to perform this task. The default credentials are the credentials of the currently logged on user unless the cmdlet is run from an Adaxes Active Directory PowerShell provider drive. If the cmdlet is run from such a provider drive, the account associated with the drive is the default one.

To specify this parameter, you can type a user name, such as “User1” or “Domain01\User01” or you can specify a PSCredential object. If you specify a user name for this parameter, the cmdlet prompts for a password.

You can also create a PSCredential object by using a script or by using the Get-Credential cmdlet. You can then set the Credential parameter to the PSCredential object.

If the acting credentials do not have permission to perform the task, Adaxes Active Directory PowerShell returns a terminating error.

  • Type:
  • PSCredential

  • Position:

  • Named

  • Required:

  • False

  • Default Value:

  • None

  • Accept pipeline input:

  • False

  • Accept wildcard characters:

  • False

-Properties

Specifies the properties of the output object to retrieve from the server. Use this parameter to retrieve properties that are not included in the default set.

Specify properties for this parameter as a comma-separated list of names. To display all of the attributes that are set on the object, specify * (asterisk).

To specify an individual extended property, use the name of the property. For properties that are not default or extended properties, you must specify the LDAP display name of the property.

  • Type:
  • String[]

  • Position:

  • Named

  • Required:

  • False

  • Default Value:

  • None

  • Accept pipeline input:

  • False

  • Accept wildcard characters:

  • False

-Server

Specifies the Active Directory Domain Services instance to connect to, by providing one of the following values for a corresponding domain name or directory server. Specify the AD DS instance in one of the following ways:

Domain name values:

  • Fully qualified domain name
  • NetBIOS name

Directory server values:

  • Fully qualified directory server name
  • NetBIOS name
  • Fully qualified directory server name and port

The default value for the Server parameter is determined by one of the following methods in the order that they are listed:

  • By using Server value from objects passed through the pipeline.
  • By using the server information associated with the Adaxes Active Directory PowerShell provider drive, when running under that drive.
  • By using the domain of the computer running PowerShell.
  • Type:
  • String

  • Position:

  • Named

  • Required:

  • False

  • Default Value:

  • None

  • Accept pipeline input:

  • False

  • Accept wildcard characters:

  • False

Inputs

None

Outputs

Softerra.Adaxes.PowerShellModule.Directory.ADRootDSE

An ADRootDSE object that represents the data tree for the specified directory server is output by this cmdlet.