約106件1ページ目

日本語のみで絞り込む

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 ...

2017/2/19 -Is there a way to have an error action to set the wronged variable to its default that was previously defined? The answer is: no, and for a good ...

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 ...

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 ...

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

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, IgnoreCase is set to $True (ignore case). If you set this to $False then supplying mars as a value for the Planet parameter for Get- ...

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.

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

2025/9/12 -PowerShell parameter default values make functions more versatile. They're defined in function param blocks or via $PSDefaultParameterValues ...