VMware Cloud Community
ultan
Contributor
Contributor
Jump to solution

Issue with -ParticipateInCEIP option in Set-PowerCLIConfiguration module

Running a powershell script as part of our automated deployments I want to set the -ParticipateInCEIP option to ignore permanently.

However, the conventional command should work.

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

But this gives out the error like so:

Set-PowerCLIConfiguration : Missing an argument for parameter 'ParticipateInCeip'. Specify a parameter of type 'System.Boolean' and try again.

At line:1 char:39

+ Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP -Confirm:$fa ...

+                                       ~~~~~~~~~~~~~~~~~~

+ CategoryInfo          : InvalidArgument: (:) [Set-PowerCLIConfiguration], ParameterBindingException

+ FullyQualifiedErrorId : MissingArgument,VMware.VimAutomation.ViCore.Cmdlets.Commands.SetVIToolkitConfiguration

The command

Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $false

Works, but asks for a user prompt to continue

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

Interactive mode is something  I want to avoid as I want this to be automated.

So, am I doing something wrong here?

The Set-PowerCLIConfiguration command does support a -Confirm option as I have used it and am using it now, but with the -ParticipateInCEIP icommand t seems to stop working

Any ideas?

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

This works for me

Set-PowerCLIConfiguration -ParticipateInCeip $false -Confirm:$false


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

2 Replies
LucD
Leadership
Leadership
Jump to solution

This works for me

Set-PowerCLIConfiguration -ParticipateInCeip $false -Confirm:$false


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

ultan
Contributor
Contributor
Jump to solution

Thank you, that indeed works for me.

Reply
0 Kudos