約2,520件1ページ目

日本語のみで絞り込む

2021/8/17 -What is the proper way to define a dynamic ValidateSet in a PowerShell script? ... Use ValidateSet Command in param block to define parameter.

2025/5/20 -The ValidateScript attribute specifies a script that's used to validate a parameter or variable value. PowerShell pipes the value to the ...

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.

2018/11/29 -If you're writing for Windows PowerShell, I think a much more effective alternative is to combine [ArgumentCompleter()] and [ValidateScript()] ...

2026/4/27 -This is because we cannot declare the generator above the parameter block, when the parameter block belongs to the script itself. Importing it ...

2012/4/16 -Today we'll continue our exploration of the parameter validation attributes you can use in you PowerShell scripting.

2025/2/18 -You must use a script block if you want date ranges based on the current date. ... ValidateSet as it is part of the shown syntax. Information ...

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:

2025/5/28 -One validation attribute I use very often is ValidateSet . It restricts input to a predefined list of allowed values. param( [ValidateSet("Start ...

2013/5/21 -In particular, ValidateScript lets you write a script block to test the conditions that the values must satisfy. Windows PowerShell runs the ...