TestimoX

API Reference

Command

Get-ADXDuplicateSpn

Namespace ADPlayground.PowerShell
Inputs
System.String System.String[]
Outputs
ADPlayground.DuplicateSpnInfo

Finds duplicate Service Principal Names (SPNs) across a domain or the whole forest.

Examples

Authored help example

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 optionalposition: 0pipeline: true (ByPropertyName)
Optional domain DNS name. When omitted, scans the entire forest.
ServiceClass string[] optionalposition: 1pipeline: true (ByPropertyName)
Optional service class filter (e.g., MSSQLSvc, HTTP, CIFS).

Outputs

ADPlayground.DuplicateSpnInfo