Examples: The user object for the user Jane Doe can be renamed to Jane Jones with the following command: dsmove "cn=Jane Doe,ou=sales,dc=microsoft,dc=com" -newname "Jane Jones" The same user can be moved from the Sales organization to the Marketing organization with the following command: dsmove "cn=Jane Doe,ou=sales,dc=microsoft,dc=com" -newparent ou=Marketing,dc=microsoft,dc=com The rename and move operations for the user can be combined with the following command: dsmove "cn=Jane Doe,ou=sales,dc=microsoft,dc=com" -newparent ou=Marketing,dc=microsoft,dc=com -newname "Jane Jones" 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: For setting 'MPIO Disk2' to Fail-Over Only with pathId 0000000077030000 set to Active/Optimized and be the Preferred ...
Examples: REG QUERY HKLM\Software\Microsoft\ResKit /v Version Displays the value of the registry value Version REG QUERY ...
Examples: Rename rule1 to rule 2: netsh advfirewall consec set rule name="rule1" new name="rule2" Change the action on a ...
Examples: setspn -R daserver1 It will register SPN "HOST/daserver1" and "HOST/{DNS of daserver1}" setspn -A http/daserver ...
Examples: The user object for the user Jane Doe can be renamed to Jane Jones with the following command: dsmove "cn=Jane ...
Examples: To add the user Mike Danseglio to all administrator distribution list groups: dsquery group "OU=Distribution Lists,DC=microsoft,DC=com" ...
Examples: To change the description of several OUs at the same time: dsmod ou "OU=Domain Controllers,DC=microsoft,DC=com" ...
Examples: To disable multiple computer accounts: dsmod computer CN=MemberServer1,CN=Computers,DC=microsoft,DC=com CN=Mem ...
Examples: To display all directory partitions in the forest that begin with "application", along with the top three directory ...