Get-SqlSpnAccount Verifies and retrieves a standard Active Directory account.
Description
First step of the SPN management pipeline. Ensures the supplied service account or gMSA exists in Active Directory and returns a normalized descriptor used by downstream functions (New-SqlSpnPlan, Invoke-SqlSpnExecutionEngine). On lookup failure, emits a non-terminating error so callers can decide whether to abort the pipeline or recover.
Recipes
Recipe 1
EXAMPLE 1
Get-SqlSpnAccount -SamAccountName 'svc_sql_prod'
Recipe 2
EXAMPLE 2
$acct = Get-SqlSpnAccount -SamAccountName 'SQLFCI01