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
Examples: To display all directory partitions in the forest that begin with "application", along with the top three directory ...
Examples: To display the account to which the quota is assigned and the quota limit for the quota specification "CN=quot ...
Examples: To display the description and phone numbers for contacts "Jon Smith" and "Jona Jones". dsget contact "CN=John ...
Examples: To enable the Active Directory Domain Controllers CORPDC1 and CORPDC9 to become global catalog servers: dsmod server ...
Examples: To find all Active Directory Domain Controllers for domain corp.microsoft.com and display their DNS host name and ...
Examples: To find all AD DCs in the current domain: dsquery server To find all AD DCs in the forest and display their Relative ...
Examples: To find all computers in a given OU whose name starts with "tst" and show their descriptions. dsquery computer ...
Examples: To find all computers in the current domain whose name starts with "ms" and whose description starts with "desktop", ...
Examples: To find all connections for server CORPDC1 and show their from-end servers and enabled states. dsquery conn -to ...