C
ClearView News

How do I delete my SPN record?

Author

Christopher Ramos

Published Mar 18, 2026

How do I delete my SPN record?

To remove an SPN, use the setspn -d service/name hostname command at a command prompt, where service/name is the SPN that is to be removed and hostname is the actual host name of the computer object that you want to update.

Also asked, how do I delete duplicate entries in supernatural?

Option 1:

  1. Run ADSIEdit. msc and navigate to the computer object with the duplicated SPN.
  2. Right-click and select Properties.
  3. Double-click on the "servicePrincipalName" attribute.
  4. Remove the duplicate SPN.

Similarly, how do I check if a SPN is registered? Verify SPN has been successfully registered Using SETSPN Command Line Utility. In Command Line enter the following command: setspn -L <DomainSQL Service Account Name> and press enter. Next, you need to look for registered ServicePrincipalName to ensure that a valid SPN has been created for the SQL Server.

Moreover, what is SPN record?

A service principal name (SPN) is a unique identifier of a service instance. SPNs are used by Kerberos authentication to associate a service instance with a service logon account. This allows a client application to request that the service authenticate an account even if the client does not have the account name.

What is Server SPN?

July 18, 2019 by Rajendra Gupta. This article gives an overview of Service Principal Name (SPN) for using the Kerberos authentication in SQL Server connections. We use the Kerberos authentication to authenticate windows users securely for providing access to SQL Server.

Can you have duplicate SPN?

If the service account is no longer in play, then the duplicate SPN is safe to delete. Think of SPNs as just an alias for a resource on your network.

How do I find duplicates in supernatural?

Procedure
  1. First, look at the output of the SETSPN -S command to identify the account that the SPN is already registered to and make a note of the account name.
  2. Decide if the account shown is the correct account.

Where are SPN records stored?

If the service runs under a user account, the SPNs are stored in the servicePrincipalName attribute of that account. If the service runs in the LocalSystem account, the SPNs are stored in the servicePrincipalName attribute of the account of the service's host computer.

What is MSSQLSvc?

SPN Formats

MSSQLSvc is the service that is being registered. <FQDN> is the fully qualified domain name of the server. <port> is the TCP port number. <instancename> is the name of the SQL Server instance.

What is azure SPN?

An Azure SPN is a security identity used by user-created applications, services, and automation tools to access specific Azure resources. It improves security if you grant it only the minimum permissions level needed to perform its management tasks.

What is SQL SPN?

SPNs are used by the authentication protocol to determine the account in which a SQL Server instance runs. If the instance account is known, Kerberos authentication can be used to provide mutual authentication by the client and server.

What is SPN and UPN?

UPN: An entity performing client requests to some service. Entity may be human or machine. See here. SPN: An entity processing requests for a specific service, e.g., HTTP, LDAP, SSH, etc. Machine only.

How do I set up SPN?

The steps to follow to configure an SPN account for an application server are:
  1. Assign the SPN to the Active Directory account using the setspn command.
  2. Repeat this command for any number of SPN to the same account.
  3. Generate a keytab file for the user account.

What is SPN Active Directory?

A Service Principal Name (SPN) is a name in Active Directory that a client uses to uniquely identify an instance of a service. An SPN combines a service name with a computer and user account to form a type of service ID.

How do I know if I have NTLM or Kerberos authentication?

If you're using Kerberos, then you'll see the activity in the event log. If you are passing your credentials and you don't see any Kerberos activity in the event log, then you're using NTLM. Second way, you can use the klist.exe utility to see your current Kerberos tickets.

What are Kerberos principals?

A Kerberos Principal represents a unique identity in a Kerberos system to which Kerberos can assign tickets to access Kerberos-aware services. Principal names are made up of several components separated by the "/" separator. You can also specify a realm as the last component of the name by using the "@" character.

What is a duplicate SPN?

When a Kerberos client uses its TGT to request a service ticket for a specific service, the service is actually identified by its SPN. In the case of a duplicate SPN, what can happen is that the KDC will generate a service ticket that may be created based on the shared secret of the wrong account.

How can I tell if SQL Server is using Kerberos authentication?

Test Connections are using Kerberos

Open a new query window and run the following statement: SELECT auth_scheme FROM sys. dm_exec_connections WHERE session_id = @@SPID; A result of Kerberos indicates that your setup so far is working.

How manually register SPN in SQL Server?

To manually create a domain user Service Principle Name (SPN) for the SQL Server service account
  1. Click Start, click Run and then enter cmd in the Run dialog box.
  2. From the command line, navigate to Windows Server support tools installation directory.
  3. Enter a valid command to create the SPN.

How do I find service principal name?

View the service principal
  1. Click Azure Active Directory and then click Enterprise applications.
  2. Under Application Type, choose All Applications and then click Apply.
  3. In the search filter box, type the name of the Azure resource that has managed identity enabled or choose it from the list presented.

How does NTLM authentication work?

How does NTLM authentication work?
  1. The client sends a username to the host.
  2. The host responds with a random number (i.e. the challenge).
  3. The client then generates a hashed password value from this number and the user's password, and then sends this back as a response.

What is the last step in configuring a group managed service account?

Group Managed Service Accounts
  1. Step 1 − Create the KDS Root Key.
  2. Step 2 − To create and configure gMSA → Open the Powershell terminal and type −
  3. Step 3 − To install gMAs on a server → open PowerShell terminal and type in the following commands −
  4. Step 4 − Go to service properties, specify that the service will be run with a gMSA account.

What is service principal name in Azure?

An Azure service principal is an identity created for use with applications, hosted services, and automated tools to access Azure resources. This access is restricted by the roles assigned to the service principal, giving you control over which resources can be accessed and at which level.

How do you fix a double hop issue?

Restart the SQL Server Instances. This causes a SPN to be created (Service Principal Name) for each instance. Once this is done a "Delegation" tab will be visible in AD for each of the service accounts. Grant both of your service accounts "Trust this user for delegation to any service (Kerberos only)".

What is Sspi in SQL Server?

SSPI stands for Security Support Provider Interface. Other than SSPI you can also use "true". Integrated Security actually ensures that you are connecting with SQL Server using Windows Authentication, not SQL Authentication; which requires username and password to be provided with the connecting string.

What is Kerberos and how it works?

Kerberos uses symmetric key cryptography and requires trusted third-party authorization to verify user identities. Since Kerberos requires 3 entities to authenticate and has an excellent track record of making computing safer, the name really does fit.

What is a principal name?

A principal is essentially another name for a company owner or member; at some corporations, the principal is also the founder, CEO, or even the chief investor. While the role of a principal varies per company, the main tasks include managing client and business relationships and helping direct the company's vision.