====== Interragir avec l'utilisateur avec un script powershell ====== Write-host "Would you like to download your PublishSettings File to connect to Azure? (Default is No)" -ForegroundColor Yellow $Readhost = Read-Host " ( y / n ) " Switch ($ReadHost) { Y {Write-host "Yes, Download PublishSettings"; $PublishSettings=$true} N {Write-Host "No, Skip PublishSettings"; $PublishSettings=$false} Default {Write-Host "Default, Skip PublishSettings"; $PublishSettings=$false} } Autre exemple : [[https://social.technet.microsoft.com/wiki/contents/articles/24030.powershell-demo-prompt-for-choice.aspx|Technet - PowerShell demo prompt for choice]]