Examples: setspn -R daserver1 It will register SPN "HOST/daserver1" and "HOST/{DNS of daserver1}" setspn -A http/daserver daserver1 It will register SPN "http/daserver" for computer "daserver1" setspn -D http/daserver daserver1 It will delete SPN "http/daserver" for computer "daserver1" setspn -F -S http/daserver daserver1 It will register SPN "http/daserver" for computer "daserver1" if no such SPN exists in the forest setspn -U -A http/daserver dauser It will register SPN "http/daserver" for user account "dauser" setspn -T * -T foo -X It will report all duplicate registration of SPNs in this domain and foo setspn -T foo -F -Q */daserver It will find all SPNs of the form */daserver registered in the forest to which foo belongs
Examples: Add a rule for domain isolation using defaults: netsh advfirewall consec add rule name="isolation" endpoint1=any ...
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 ...