日本語のみで絞り込む
2017/1/20 -I'm writing a script with PowerShell and at some point I needed to use ValidateSet on function params. It's a very good feature, but what I need ...
2020/6/17 -Since we are casting Detail as an array, we should be able to specify multiple parameters and in fact we can if using old Windows PowerShell ...
2019/6/3 -Check out the last section on this page, it should let you use one validate set or the other depending on the value of the previous parameters.
2019/10/23 -ValidateSet is a parameter attribute that allows you to define a set of elements that are only accepted as the value for that parameter. For ...
2022/4/15 -I have a function with several parameters defined. One of the parameters is a validate set consisting of 3 items. This works as expected and ...
Using ValidateSet also enable tab expansion of values for that parameter. For more information, see about_Tab_Expansion. Dynamic ValidateSet values using ...
2026/3/26 -Each parameter has its own ValidateSet; You can combine ValidateSet with default values ( $WebServer = 'IIS' ); The default value must be one of ...
2025/2/18 -PowerShell can utilize several built-in validation options. These validations need to be added before the parameter definition in the same ...
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:
2015/8/10 -What if you'd like to define multiple parameters dynamically, with different arguments (Mandatory, ValueFromPipeline, etc), belonging to ...