SetSpn Topics | Previous | Next

SetSpn Examples


List currently registered SPNs

setspn -l daserver1
Registered ServicePrincipalNames for CN=DASERVER1,CN=Computers,DC=reskit,DC=microsoft,DC=com:
HOST/daserver1
HOST/daserver1.reskit.microsoft.com

Reset default registered SPNs

setspn -r daserver1
Registering ServicePrincipalNames for CN=DASERVER1,CN=Computers,DC=reskit,DC=microsoft,DC=com
HOST/daserver1.reskit.microsoft.com
HOST/daserver1
Updated object

Add new SPN

setspn -a http/daserver1.reskit.microsoft.com daserver1
Registering ServicePrincipalNames for CN=DASERVER1,CN=Computers,DC=reskit,DC=microsoft,DC=com
        http/daserver1.reskit.microsoft.com
Updated object

Remove SPN

setspn -d http/daserver1.reskit.microsoft.com daserver1
Unregistering ServicePrincipalNames for CN=DASERVER1,CN=Computers,DC=reskit,DC=microsoft,DC=com
http/daserver1.reskit.microsoft.com
Updated object