Private/Get-SqlSpnTargetName.ps1

# =============================================================================
# Script : Get-SqlSpnTargetName.ps1
# Author : Keith Ramsey
# =============================================================================
# Change Log
# -----------------------------------------------------------------------------
# 2026-05-09 Keith Ramsey Phase 2 release polish - DR-202 standard header applied.
# =============================================================================
function Get-SqlSpnTargetName {
    <#
    .SYNOPSIS
        Prompts for the target DNS name (server, virtual computer, or AG listener).
    .DESCRIPTION
        Wrapped in a function so Pester has a distinct mockable identity for it,
        otherwise both Read-Host calls in the workflow would need ParameterFilter
        differentiation.
    #>

    [CmdletBinding()]
    param()
    return Read-Host 'Enter Target DNS Name (Server, Virtual Name, or Listener)'
}