自动执行提示用户输入的powershell命令?

时间:2014-04-03 11:49:59

标签: powershell powershell-v2.0

我执行命令

Enable-PSRemoting

有时会提示

Do you want to continue?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"):

如何自动回答' A'什么时候提示呢?

1 个答案:

答案 0 :(得分:1)

Enable-PSRemoting -Confirm:$false