K B
asked on
PowerShell: Convert parameter's friendly name to another name... hashtable perhaps?
If I have a user select, for example "Teams", I would like to use the variable but with the name that Microsoft requires in their code...
So when I use $RemoveOption further down in the function it will contain "Teams1" not "Teams".
Is that possible?
Thank you.
[parameter(Mandatory=$False)]
[ValidateSet("Teams", "Sway", "Yammer", "Flow", "LockBox")]
[string] $RemoveOption
So when I use $RemoveOption further down in the function it will contain "Teams1" not "Teams".
Is that possible?
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER