Currently browsing tag

menu

Ask-YesOrNo

Prompt the user for ‘Yes’ or ‘No’. Function Ask-YesOrNo { param([string]$title=”Confirmation needed”,[string]$message=”xxxxxxxxxx. Are you sure?”) $choiceYes = New-Object System.Management.Automation.Host.ChoiceDescription “&Yes”, “Answer Yes.” …

Scroll to Top