I am writing a function and I want input of one of the parameters (UserOffice) to be restricted to a list of 13 of my field offices. For example:
Set-NewUser -Username NewUser -Office Chicago
I want -Office input to be only Chicago, Miami, St. Louis, etc…
I see a lot of other ways to restrict input but not to specific terms.
submitted by /u/CJamesEd
[link] [comments]
The post Restrict parameter to specific set of input appeared first on How to Code .NET.