How to Use -confirm in PowerShell

后端 未结 10 1402
遥遥无期
遥遥无期 2020-12-07 20:10

I\'m trying to take user input and before proceeding I would like get a message on screen and than a confirmation, whether user wants to proceed or not. I\'m using the follo

10条回答
  •  -上瘾入骨i
    2020-12-07 20:52

    Write-Warning "This is only a test warning." -WarningAction Inquire
    

    from: https://serverfault.com/a/1015583/584478

提交回复
热议问题