Examples: To find all subnets with the network IP address starting with 123.12: dsquery subnet -name 123.12.* To find all subnets in the site whose name is "Latin-America", and display their names as Relative Distinguished Names (RDNs): dsquery subnet -o rdn -site Latin-America To list the names (RDNs) of all subnets defined in the directory: dsquery subnet -o rdn
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 ...
Examples: To find all users in a given organizational unit (OU) whose name starts with "jon" and whose account has been disabled ...
Examples: To find all users in a given OU whose names start with "jon" and display their descriptions, type: dsquery user ...
Examples: To find all users in the current domain only whose SAM account name begins with the string "jon" and display their ...
Examples: To find all users in the organizational unit (OU) "ou=Marketing,dc=microsoft,dc=com" and add them to the Marketing ...