vmware / powerclicore

PowerCLI Core Dockerfile
Apache License 2.0
100 stars 47 forks source link

suppress VMware Customer Experience Improvement Program message #33

Open erpadmin opened 6 years ago

erpadmin commented 6 years ago

if run 'Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false | Out-Null' i get the following message

WARNING: Please consider joining the VMware Customer Experience Improvement Program, so you can help us make PowerCLI a better product. You can join using the following command:

Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true

VMware's Customer Experience Improvement Program ("CEIP") provides VMware with information that enables VMware to improve its products and services, to fix problems, and to advise you on how best to deploy and use our products.  As part of the CEIP, VMware collects technical information about your organization�s use of VMware products and services on a regular basis in association with your organization�s VMware license key(s).  This information does not personally identify any individual.

For more details: type "help about_ceip" to see the related help article.

To disable this warning and set your preference use the following command and restart PowerShell: 
Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true or $false.

Suggestion Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $false does not persist.

Any way to suppress this message?

jakerobinson commented 6 years ago

Yeah, this is weird... I have to do some investigation.

markercm commented 5 years ago

Set-PowerCLIConfiguration -Scope AllUsers -ParticipateInCEIP $false -Confirm:$false

This should do the needful in my experimentation.

reidja commented 5 years ago

Please how do I fix this. It appears every single time I run this container? The above commands do not work as it seems to require restarting the container.

SeanHood commented 5 years ago

I have just added a PR to suppress this message

mattmoor commented 4 years ago

Any chance we can get that PR some TLC? I just opened (and closed) an issue for this before discovering this issue (and the PR!): https://github.com/vmware/powerclicore/pull/38

SeanHood commented 4 years ago

PR has been updated!

dmilov commented 3 years ago

The warning message is displayed on Import-Module which is triggered by PowerShell auto-loading mechanism. PowerCLI is required to display this warning when no configuration is set. An option to work around this is to call Import-Module VMware.VimAutomation.Core -WarningAction SilentlyContinue as a first command.

JesseDarr commented 2 years ago

I'm still seeing this issue in the latest version. None of the listed workarounds work for me.

I'm running my container via Concord and then using stdout in a slack notification. My current workaround is just to use a substring of the stdout for my notification, but a real fix would be nice.

christian-naenny commented 2 months ago

Is there any update on this issue? Our Linux servers are NOT able to connect to the internet by default. So, it's really annoying that this message cannot be turned off and it spills into logfiles of scripts being executed. Import-Module VMware.VimAutomation.Core -WarningAction SilentlyContinue does not work and sudo pwsh Set-PowerCLIConfiguration -Scope AllUsers -ParticipateInCeip $false does not work either.