Examples: To find all AD DCs in the current domain: dsquery server To find all AD DCs in the forest and display their Relative Distinguished Names: dsquery server -o rdn -forest To find all AD DCs in the site whose name is "Latin-America", and display their Relative Distinguished Names: dsquery server -o rdn -site Latin-America Find the AD DC in the forest that holds the schema FSMO role: dsquery server -forest -hasfsmo schema Find all AD DCs in the domain example.microsoft.com that are global catalog servers: dsquery server -domain example.microsoft.com -isgc Find all AD DCs in the current domain that hold a copy of a given directory partition called "ApplicationSales": dsquery server -part "Application*"
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 ...
Examples: To find all groups in a given OU whose names start with "adm" and display their descriptions. dsquery group ou=Test,dc=microsoft,dc=com ...