2026/6/1 -The ValidateScript attribute lets you define custom validation logic using a script block. The $_ variable represents the value being validated. PowerShell copy.
2026/8/11 -ValidateScript 検証属性. ValidateScript 属性は、パラメーターまたは変数値の検証に使用されるスクリプトを指定します。 PowerShell は値をスクリプトにパイプ ...
2026/11/15 -The [ArgumentCompleter()] attribute allows you to add tab completion values to a specific parameter. It must be defined for each parameter that needs tab ...
2026/1/13 -You can use $PSItem in the scriptblock of a ValidateScript attribute. When used with ValidateScript, $PSItem is the value of the current object being validated.
2026/1/17 -More sophisticated parameter validation logic can be included in a ValidateScript attribute and/or executed elseware (e.g. the begin{} or process{} blocks, ...
2026/8/31 -How to use ValidateScript on a collection instead of the elements in the collection? Microsoft docs mention that if I apply the ValidateScript attribute to ...
2026/7/7 -The PowerShell scanner in PDQ Connect allows you to collect custom inventory data from devices by running PowerShell scripts and storing the results in a ...
2026/8/6 -Validation expressed as parameter attributes, not if blocks. [ValidateSet] gets you tab completion and accepted values in Get-Help for free; [ValidateRange] ...
2026/8/9 -Prefer [ValidateSet] over string comparison; it drives completion. [ValidateScript] must throw a message that names the offending value. The default. failure ...
2026/10/9 -Creating a Report Module. This guide provides comprehensive standards and guidelines for developing AsBuiltReport report modules.