Private/Get-SqlSpnExecutionConfirmation.ps1
|
# ============================================================================= # Script : Get-SqlSpnExecutionConfirmation.ps1 # Author : Keith Ramsey # ============================================================================= # Change Log # ----------------------------------------------------------------------------- # 2026-05-09 Keith Ramsey Phase 2 release polish - DR-202 standard header applied. # ============================================================================= function Get-SqlSpnExecutionConfirmation { <# .SYNOPSIS Prompts for the final Y/N confirmation before SPN registration runs. .DESCRIPTION Returns a real bool. Mockable. Bypassed when Start-SqlSpnManager is called with -AutoConfirm. #> [CmdletBinding()] param() return ((Read-Host 'Execute these SPNs now? (Y/N)') -eq 'Y') } |