PowerShell - Scripting Best Practices
Which parameter validation attribute restricts a parameter to accept only specific values in PowerShell?
[ValidateSet()] restricts parameter values to a predefined set of allowed values.[ValidateRange()] restricts numeric ranges, [ValidatePattern()] uses regex, and [ValidateLength()] limits string length.[ValidateSet()] [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions