PowerShell - Functions
Which attribute restricts a PowerShell parameter to accept only specific predefined values?
[ValidateSet()] attribute limits parameter input to a set of allowed values.[Parameter(Mandatory=$true)] enforces presence, [ValidateRange()] restricts numeric ranges, and [AllowNull()] allows nulls.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions