約79件1ページ目

日本語のみで絞り込む

条件を指定して検索しています。すべての条件を解除する

  • 最終更新日:1年以内
  • 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/11/15 -Parameter block for a script or an advanced function. Common Parameters · Validate Parameter Input. List the values of a ValidateSet parameter · Parameter Sets.

    2026/8/11 -ValidateSet 属性は、パラメーターまたは変数の有効な値のセットを指定し、タブ補完を有効にします。 パラメーターまたは変数の値がセット内の値と一致しない場合、 ...

    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/10/22 -PowerShell function parameters in a param block: defaults, Mandatory, validation, switches, splatting, pipeline input, plus return values and scope.

    2026/2/5 -Critical tip: Always validate parameters with ValidateScript — prevents catastrophic errors from typos in paths. ... PHASE 2: FORENSIC LOGGING FUNCTION.

    2026/10/29 -[ValidateScript({ $color = $_.ToLower().Trim() # Allow 'random' if ($color ... function body $htmlColorNames = @( 'aliceblue', 'antiquewhite', 'aqua ...

    2026/1/17 -If you are trying to validate input parameters use param() at script level or function level rather than throw: learn.microsoft.com/en-us/powershell/module/….

    2026/8/9 -... ValidateScript({ if (-not (Test-Path -LiteralPath $_)) { throw "Path ... Idiomatic PowerShell is functions plus objects. Do not produce Java-flavored ...

    2026/8/24 -PowerShell Standards. An opinionated, production-grade set of standards for writing PowerShell that is consistent, safe, observable, secure, and testable.