約125件1ページ目

日本語のみで絞り込む

2025/5/20 -The default value of true indicates that case is ignored. A value of false makes the cmdlet case-sensitive. Remarks. This attribute can be used ...

2017/1/25 -I use dynamic validate sets for my functions for mandatory parameters. When not provided Powershell prompts and forces user to input. However in ...

2017/1/21 -ValidateSet is part of advanced parameters. It allows you to constrain the input of the parameter to a set of values. It also will autocomplete ...

2022/12/18 -Providing a default value to a parameter that uses ArgumentCompletions attribute. Question.

2026/3/26 -You can combine ValidateSet with default values ( $WebServer = 'IIS' ); The default value must be one of the valid set values. # Example usage ...

2014/4/2 -Another important item is that you cannot use a default value in your parameter. ... For more cool stuff you can do with ValidateSet, check ...

2019/10/23 -By default, the ValidateSet attribute is case insensitive. This means that it will allow any string granted it's in the allowed list with any ...

By default, all function parameters are positional. PowerShell assigns position numbers to parameters in the order the parameters are declared in the function.

2025/2/18 -Restricts input not to be null. Typically, $null is an acceptable value when passing a mandatory parameter. Use this validation to prevent this.

2025/7/15 -When you're creating scripts, in some cases, you may want to limit what values a consumer is allowed to provide for a specific parameter.