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 -name adm* |
dsget group -desc
To display the list of members, recursively expanded, of the group "Backup
Operators":
dsget group "CN=Backup Operators,ou=Test,dc=microsoft,dc=com" -members
-expand
To display the effective quota and quota used for a group on a specified
partition, type:
dsget group "CN=Backup Operators,OU=Test,DC=microsoft,DC=com"
-part "CN=domain1,dc=microsoft,dc=Com" -qlimit -qused
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 ...
Examples: To find all groups in the current domain whose name starts with "ms" and whose description starts with "admin", ...
Examples: To find all OUs in the current domain whose name starts with "ms" and whose description starts with "sales", and ...
Examples: To find all sites in North America with name starting with "north" and display their DNs: dsquery site -name north* ...
Examples: To find all subnets with the network IP address starting with 123.12: dsquery subnet -name 123.12.* To find all ...