Examples: To find all Active Directory Domain Controllers for domain corp.microsoft.com and display their DNS host name and ...

Examples: To find all Active Directory Domain Controllers for domain  corp.microsoft.com and display their DNS host name and site name:  dsquery server -domain corp.microsoft.com |  dsget server -dnsname -site  To show if an Active Directory Domain Controller with the  name DC1 is also a global catalog server:  dsget server cn=DC1,cn=Servers,cn=Site10,cn=Sites,cn=Configuration, dc=microsoft,dc=com -isgc  To show the distinguished names of the directory partitions on an Active Directory Domain Controller with the name DC1, type:  dsget server cn=DC1,cn=Servers,cn=Site10,cn=Sites,cn=Configuration, dc=microsoft,dc=com -part  To show the security principals that own the largest total number of directory objects on the directory partitions of an AD DC with the name DC1, and limiting the list to the top 5 owners, type:  dsget server cn=DC1,cn=Servers,cn=Site10,cn=Sites,cn=Configuration, dc=microsoft,dc=com -topobjowner 5