Skip to content

Instantly share code, notes, and snippets.

@corbob
Created May 29, 2019
Embed
What would you like to do?
# Works
Param(
[Parameter(mandatory)]
$a,
[ValidateSet(1,2,3,4,5,6,7,8,9)]
$b
)
# doesn't work...
param (
[string]$Str,
[parameter(mandatory)]
[validateset(1,234,6,7,5,3,23)]
$durrrr
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment