PowerCLI

 View Only
  • 1.  Powershell CLI Set-PowerCLIConfiguration suppress confirmation

    Posted Jan 21, 2018 11:19 PM

    Hi,

    When I log into my vcenter:

    Connect-VIServer -Server myvcenter.com -Credential $credential

    I get this message:

    WARNING: Please consider joining the VMware Customer Experience Improvement Program, so you can help us make PowerCLI

    .....

    To suppress this:

    Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $false

    However I get this confirmation:

    Perform operation?

    Performing operation 'Update PowerCLI configuration.'?

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

    How do I suppress this confirmation?



  • 2.  RE: Powershell CLI Set-PowerCLIConfiguration suppress confirmation
    Best Answer

    Posted Jan 22, 2018 05:33 AM

    Try adding -Confirm:$false



  • 3.  RE: Powershell CLI Set-PowerCLIConfiguration suppress confirmation

    Posted Jan 22, 2018 05:55 AM

    Thanks. Works great!



  • 4.  RE: Powershell CLI Set-PowerCLIConfiguration suppress confirmation

    Posted Jun 13, 2020 12:28 PM

    I am having the same issue but I added the -Confirm:$false after the password. It still prompts me. Where should I add the -Confirm:$false statement?



  • 5.  RE: Powershell CLI Set-PowerCLIConfiguration suppress confirmation

    Posted Jun 13, 2020 12:41 PM

    The Connect-VIServer cmdlet doesn't have the Confirm switch.

    This thread was to add the Confirm switch on the Set-PowerCLIConfiguration cmdlet.



  • 6.  RE: Powershell CLI Set-PowerCLIConfiguration suppress confirmation

    Posted Jun 14, 2020 04:35 PM

    Hi LucD

    You are saying add the confirm switch after the Connect-VIserver

    Connect-VIServer -Server myvcenter.com -Credential $credential (Here?)



  • 7.  RE: Powershell CLI Set-PowerCLIConfiguration suppress confirmation

    Posted Jun 14, 2020 04:38 PM

    No, I said the Connect-VIServer cmdlet does not have a Confirm parameter.