Is it possible to make a Paramater validateset work with a wildcard?
I would want on the *
places to accept 0-100.
param
(
[Parameter(Mandatory=$True)]
[validateset("6.1.*.*")]
[string]$variable
)
Error message:
Cannot validate argument on parameter 'variable'. The argument "6.1.1.0" does not belong to the set "6.1.." specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again. + CategoryInfo : InvalidData: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : ParameterArgumentValidationError