Network and certificates

0x80090322: The target principal name is incorrect

The server could not prove it is the server the client asked for. A wrong or duplicate SPN, or a certificate name mismatch, is the usual cause.

Hex code0x80090322
Decimal-2146893022
NameSEC_E_WRONG_PRINCIPAL
Logs to readCcmMessaging.log, LocationServices.log, ccmsetup.log, smsts.log, SMSProv.log, netlogon.log

What 0x80090322 means

The client asked to talk to one named server. The answer came from an identity that does not match that name. Windows security (SSPI) stops the connection.

With Kerberos, the cause is a service principal name (SPN) on the wrong account. With HTTPS, the cause is a certificate that does not hold the server name. In SCCM you see it in CcmMessaging.log, ccmsetup.log, smsts.log, and on site servers that connect to SQL Server.

Common causes

  • The same SPN is registered on two accounts in Active Directory.
  • SQL Server or an IIS application pool runs as a service account and the SPN sits on the computer account, or the reverse.
  • A DNS alias or an old record points the name at a different server.
  • The server's computer account password is out of step with the domain.
  • The HTTPS certificate does not list the name the client used.

How to fix 0x80090322

  1. Find the name that failed

    Open the log that shows the code. Note the server name on the line above. Decide whether the call is HTTPS to a site system or a connection to SQL Server.

  2. Look for duplicate SPNs

    Run setspn -X from a domain computer. It lists SPNs that exist on more than one account. Remove the wrong copy with setspn -D. Then list the SPNs on the right account with the command below.

  3. Check the SQL Server SPN

    If the site server cannot reach the site database, check the account that runs the SQL Server service. The MSSQLSvc SPNs for the server name and port must be on that account. Microsoft documents this under SPNs for the Configuration Manager site database.

  4. Check DNS

    Run nslookup for the name and confirm the IP address belongs to the right server. Remove stale A records and aliases that point elsewhere.

  5. Check the secure channel and the certificate

    On the server, run the PowerShell test below. False means the computer account is out of step with the domain. For HTTPS, view the certificate on the IIS binding and confirm it holds the name clients use.

Commands that help

Find duplicate SPNs and list the SPNs of one account · Command Prompt
setspn -X
setspn -L CONTOSO\svc-sql
Test the computer's secure channel to the domain · PowerShell
Test-ComputerSecureChannel -Verbose
Got a different code?

Turn any hex or decimal error code into its meaning, or search every code on this site.

Error code lookup All SCCM error codes

✉

Get new articles in your inbox

SCCM guides, AI tools, automation tips — sent when published. No spam.