PowerShell - Functions
Identify the error in this parameter declaration:
param(
[Parameter(Mandatory)]
[ValidateSet('On','Off')]
$Switch
)param(
[Parameter(Mandatory)]
[ValidateSet('On','Off')]
$Switch
)= $true. Just Mandatory is invalid.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions