約85件1ページ目

日本語のみで絞り込む

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

  • 最終更新日:1年以内
  • 2026/6/1 -When validation fails, PowerShell throws an exception with a descriptive error message, preventing invalid values from being used. #ValidateScript. The ...

    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/11/15 -That means: If a default value is defined (e.g. $InputFile = "C:\Some\Path\To\File.txt" ), and that path doesn't exist, ValidateScript will not throw an error!

    2026/1/17 -If your script, or any script that may source it, does not use try-catch then using throw probably is not the best method for exciting on error.

    2026/1/22 -Properties can't use the ValidateScript attribute, because class property attribute arguments must be constants. Workaround: Define a class that inherits from ...

    2026/2/5 -Critical tip: Always validate parameters with ValidateScript — prevents catastrophic errors from typos in paths. 1.2. Initial Security Configuration. At the ...

    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/24 -PowerShell Standards. An opinionated, production-grade set of standards for writing PowerShell that is consistent, safe, observable, secure, and testable.

    2026/10/2 -Learn how to create a self-signed certificate, sign PowerShell scripts, import the certificate, and allow only signed scripts to run on Windows.

    2026/8/9 -The most common defect in generated PowerShell is not style. It is a parameter that does not exist. Get-ADUser -IncludeDisabled reads perfectly, passes review, ...