Using ValidateSet for a parameter on a cmdlet, will give a list of possible parameters. But will not let the user of that cmdlet enter other values. Example the below
[ValidateSet('A','B')
Would let the users enter A
or B
, but nothing else.
I would like to provide a list that give the most common option, but also allow them to enter anything else.
For example, a parameter that takes a path to a build. Build A
and B
are shipped and stable builds. But there are many other builds. So, I want to provide a list of A
and B
build so they do not need to know the path to them but then also let them enter any other path to any other build.
Is this possible?