Examples: To remove an organizational unit (OU) called "Marketing" and all the objects under that OU, use the following command: dsrm -subtree -noprompt -c ou=Marketing,dc=microsoft,dc=com To remove all objects under the OU called "Marketing" but leave the OU intact, use the following command with the -exclude parameter: dsrm -subtree -exclude -noprompt -c "ou=Marketing,dc=microsoft,dc=com" Directory Service command-line tools help: dsadd /? - help for adding objects. dsget /? - help for displaying objects. dsmod /? - help for modifying objects. dsmove /? - help for moving objects. dsquery /? - help for finding objects matching search criteria. dsrm /? - help for deleting objects.
Examples: To find all users in the organizational unit (OU) "ou=Marketing,dc=microsoft,dc=com" and add them to the Marketing ...
Examples: To list all of the quota specifications in the current domain, type: type: dsquery quota domainroot To list all ...
Examples: To list the DNs of all directory partitions in the forest, type: dsquery partition To list the DNs of all directory ...
Examples: To modify the descriptions for the subnet "123.56.15.0/24": dsget subnet "123.56.15.0/24" -desc "test lab" See ...
Examples: To remove an organizational unit (OU) called "Marketing" and all the objects under that OU, use the following command: ...
Examples: To reset a user's password: dsmod user "CN=John Doe,CN=Users,DC=microsoft,DC=com" -pwd A1b2C3d4 -mustchpwd yes ...
Examples: To set the company information of multiple contacts: dsmod contact "CN=John Doe,OU=Contacts,DC=microsoft,DC=com" ...
Examples: To show all relevant properties for the subnets "123.56.15.0/24" and "123.56.16.0/24": dsget subnet "123.56.15 ...
Exceeded the maximum number of computer QoS policies. The computer QoS policy "%2" and subsequent computer QoS policies will ...