約123件1ページ目

日本語のみで絞り込む

2025/5/20 -If the parameter value is an array, every element of the array must match an element of the attribute set. The ValidateSetAttribute ...

2021/5/2 -I'm looking for a way to make a cmdlet which receives parameter and while typing, it prompts suggestions for completion from a predefined array ...

2017/11/28 -ValidateSet isn't designed for this. Instead, have a parameter that accepts just the type of input and make it mandatory if you need. Then, ...

2024/2/1 -Because I'm using this dynamic parameter to build a PowerShell ValidateSet array for parameter validation I must also include a System.

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.

2020/12/22 -I am writing a simple function that will ask the user to select from a list of values to use for a parameter. here is the function:

2017/1/21 -Why Use ValidateSet? ValidateSet is part of advanced parameters. It allows you to constrain the input of the parameter to a set of values.

2019/5/21 -How to validate multiple items in a parameter using [ValidateScript] ... If I have multiple computer names in the -ComputerName parameter of my ...

This attribute can be used only once per parameter. · If the parameter value is an array, every element of the array must match an element of the attribute set.

2020/6/17 -The -File CLI parameter doesn't support arrays, so you'll have to use -Command . Your quote from the docs (emphasis added) provides a clue as to ...