Examples: To modify the descriptions for the subnet "123.56.15.0/24": dsget subnet "123.56.15.0/24" -desc "test lab" See also: dsmod computer /? - help for modifying an existing computer in the directory. dsmod contact /? - help for modifying an existing contact in the directory. dsmod group /? - help for modifying an existing group in the directory. dsmod ou /? - help for modifying an existing ou in the directory. dsmod server /? - help for modifying an existing domain controller in the directory. dsmod user /? - help for modifying an existing user in the directory. dsmod quota /? - help for modifying an existing quota specification in the directory dsmod partition /? - help for modifying an existing partition in the directory 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 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 ...
Examples: To find all users with names starting with "John" and display their office numbers: dsquery user -name John* | ...
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 ...