Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

parameter: how to require either one or the other but not both

$
0
0

So I’m making my first cmdlet and I’m using the chance to rewrite an old vbscript and improve it. I want to require either a username, or an employeeid parameter. I can’t find the syntax for making param do this for me. Will I have to hand code it? Or is there a way to get it to do an either-or mandatory parameters?


Viewing all articles
Browse latest Browse all 13067

Trending Articles