VMware Cloud Community
stuartschifter
Contributor
Contributor
Jump to solution

Disconnect-VIServer keeps prompting for Confirm

Newbie here:

I am using the latest CLI as of 3 weeks ago.  I have tried all sorts of combinations based upon the help pages..

Disconnect-VIServer -Server * -Force - Confim $false

The above command still forces a dialog prompt to ask if I want to disconnect for each server or I can click on "No to All".

Thanks, Stu

Tags (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
virtualg_uk
Leadership
Leadership
Jump to solution

Hi Stuart,

Try this: Disconnect-VIServer -Confirm:$False


Graham | User Moderator | https://virtualg.uk

View solution in original post

Reply
0 Kudos
4 Replies
virtualg_uk
Leadership
Leadership
Jump to solution

Hi Stuart,

Try this: Disconnect-VIServer -Confirm:$False


Graham | User Moderator | https://virtualg.uk
Reply
0 Kudos
a_p_
Leadership
Leadership
Jump to solution

Disconnect-VIServer -Server * -Force -Confirm:$false

works for me.


André

Reply
0 Kudos
stuartschifter
Contributor
Contributor
Jump to solution

I had not tried the colon approach. Thanks!

Reply
0 Kudos
virtualg_uk
Leadership
Leadership
Jump to solution

I missed the:

-Server * -Force

Andre is right Smiley Happy Lack of sleep!


Graham | User Moderator | https://virtualg.uk
Reply
0 Kudos