Open erpadmin opened 6 years ago
Yeah, this is weird... I have to do some investigation.
Set-PowerCLIConfiguration -Scope AllUsers -ParticipateInCEIP $false -Confirm:$false
This should do the needful in my experimentation.
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.
I have just added a PR to suppress this message
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
PR has been updated!
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.
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.
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.
if run 'Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false | Out-Null' i get the following message
Suggestion
Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $false
does not persist.Any way to suppress this message?