Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Creating A PowerShell Parameter With No Value

$
0
0

The first was how long the password should be and was mandatory. The second was an optional parameter that specified whether or not the password should include complexity, which in my case I'm defining as special characters. I didn't want the user to have to actually pass any value to the parameter, though; it's presence alone would indicate if the password should be complex or not. I realized, however, that I actually wasn't sure how to do that though I knew it was quite possible; who hasn't written out a cmdlet and specified something like -Verbose or -NoClobber?

Read More


Viewing all articles
Browse latest Browse all 6937

Trending Articles