This command displays the various properties of a domain controller defined in the directory. There are three variations of this command. The first variation displays the general properties of a specified domain controller. The second variation displays a list of the security principals who own the largest number of directory objects on the specified domain controller. The third variation displays the distinguished names of the directory partitions on the specified server.
dsget server
ServerDN ...[-dn] [-desc] [-dnsname] [-site] [-isgc][{-sServer | -dDomain}][-uUserName] [-p {Password | *}] [-c][-q][-l] [{-uc | -uco | -uci}]
dsget server
ServerDN[{-sServer | -dDomain}][-uUserName] [-p {Password | *}] [-c][-q][-l] [{-uc | -uco | -uci}][-topobjownerDisplay]
dsget server
ServerDN[{-sServer | -dDomain}][-uUserName] [-p {Password | *}] [-c][-q][-l] [{-uc | -uco | -uci}][-partPartitionDN]
To find all domain controllers for domain widgets.microsoft.com and display their DNS host name and site name, type:
dsquery server -domain widgets.microsoft.com | dsget server -dnsname -site
To show if a domain controller with the name DC1 is also a global catalog server, type:
dsget server CN=DC1,CN=Servers,CN=Site10,CN=Sites,CN=Configuration,DC=Microsoft,DC=Com -isgc
To display a sorted list of security principals who own the largest number of objects on the domain controller server1.widgets.microsoft.com, type:
dsget server CN=server1,CN=widgets,DC=Microsoft,DC=com -topobjowner