Kelly Garcia
asked on
Powershell parameters
Hi,
I have the this following parameter in my parameters section:
how do i only enable one value on bothe these parameters, i dont want the user to be able to send multiple values
I have the this following parameter in my parameters section:
param(
[string]$workspacerg=$null,
[string]$SelectedSubscription=$null,
)
how do i only enable one value on bothe these parameters, i dont want the user to be able to send multiple values
Are you trying to prevent them from using both parameters? If so I think a parameter set is why you need but please confirm.
how do i only enable one value on bothe these parameters, i dont want the user to be able to send multiple values
param(
[string]$workspacerg=$null,
[string]$SelectedSubscription=$null,
)
if ($workspacerg -ne $null -and $SelectedSubscription -ne $null)
{
# Only specify one error
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.