API Reference
Command
Get-ADXDuplicateSpn
Finds duplicate Service Principal Names (SPNs) across a domain or the whole forest.
Examples
Example 1: Scan the current forest for duplicate SPNs
Get-ADXDuplicateSpn | Sort-Object ServicePrincipalName
Example 2: Focus on duplicate SQL and HTTP SPNs inside one domain
Get-ADXDuplicateSpn -Domain 'contoso.com' -ServiceClass MSSQLSvc, HTTP
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Get-ADXDuplicateSpn [-Domain <string>] [-ServiceClass <string[]>] [<CommonParameters>]#Parameters
- Domain string
- Optional domain DNS name. When omitted, scans the entire forest.
- ServiceClass string[]
- Optional service class filter (e.g., MSSQLSvc, HTTP, CIFS).
Outputs
ADPlayground.DuplicateSpnInfo