Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 PowerCLI 中使用以下 cmdlet 与服务器断开连接时,如何禁用提示?帮助文件显示了一个 -Confirm 选项,我不使用它,所以我推断没有它,应该没有提示,但我仍然得到提示?
断开连接-viserver -server MyServer
谢谢
disconnect-viserver -confirm:$false
如您所见,省略 Confirm 参数等效于-Confirm:$true
-Confirm:$true