Click to Rate and Give Feedback
TechNet
TechNet Library
Windows
Windows Server
Windows Server 2003
Technical Reference
Setspn.exe
 Setspn Syntax: Active Directory
Setspn Syntax

Updated: October 19, 2007

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Setspn Syntax

Setspn uses the following syntax:

Setspn Computer [-l] [-r] [-a SPN] [-d SPN] [-?]

Parameters

Computer
Specifies the desired Active Directory account object for which to configure the Service Principal Names (SPN). Normally, this is the NetBIOS name of the computer and optionally the domain that contains the computer account. However, any desired Active Directory object name can be used.

-l
Lists the currently registered SPN for computer.

-r
Resets the default SPN registrations for the host names for Computer.

-a SPN
Adds the specified SPN for the Computer.

-d SPN
Deletes the specified SPN for the Computer.

-?
Displays command-line usage. This parameter is the default: setspn run without this parameter displays the SPN command-line usage.

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Usage syntax is not correct      dpsnet123   |   Edit   |   Show History
When you enter the parameters as specified above, the correct usage pattern will display instead: setspn [switches data] computername
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker