문제

How can I disable the prompt when using the following cmdlet to disconnect from a server in PowerCLI? The help file shows a -Confirm option, which I don't use, so I'm inferring from this that without it, there should be NO prompt, but I still get prompted?

disconnect-viserver -server MyServer

Thanks

도움이 되었습니까?

해결책

disconnect-viserver -confirm:$false

As you notice, omitting the Confirm parameter is equivalent to -Confirm:$true

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top