Pcornel
Browse topics
Options
Recent
Favorites
Command · Windows / Windows Server / PowerShell

setspn -Q <spn>

setspn -Q <spn>

Searches the domain for an SPN and shows which account holds it.

Execution context

Standard user

Use when

Kerberos fails with a duplicate or missing SPN.

Then verify

Remove the wrong one with setspn -D <spn> <account> after confirming the service account.

Privilege Standard userState impact Read-onlyProduction Unknown

Operational impact: Read-only.
Command detailsSafety model · family · platform · verification · bundle
PrivilegeStandard user
Execution contextStandard user
State impactRead-only
Safe during productionUnknown
CategoryKerberos
Evidence levelmixed
Primary DomainWindows
Historical technical verificationNeeds verification dateCurrent command content requires review after a Git edit.
Family Erberos
PlatformWindows / Windows Server / PowerShell
PrerequisiteStandard user
Output fields

Field glossary

Important fields projected from persisted Command guidance.

Checking domain DC

..., CN=<account>, the matching SPN, Existing SPN found! / No such SPN found.

Command → Topic semantics

Used in these Topics

Each relation carries both placement role and operational semantic: verifies, configures, troubleshoots, collects evidence, changes state or general.

DomainsWindows

Find another Command

Reference enrichment

Evidence boundary

What this output can establish — and where you must not over-claim.

Proves

Shows which account owns a given SPN.

Does not prove

Does not prove the service runs under that account.

Next check

Remove the wrong one with setspn -D <spn> <account> after confirming the service account.

Depth when you need it

Command guidance

Execution context

Standard user

Use when

Kerberos fails with a duplicate or missing SPN.

Important fields

Checking domain DC=..., CN=<account>, the matching SPN, Existing SPN found! / No such SPN found.

Common problems

the SPN exists on two accounts (duplicate); no account holds it

Operational impact

Read-only.

Technical context

A duplicate SPN breaks Kerberos for that service. Use -F to search the whole forest.

Confirmation

Confirm action

Continue?