
about_Functions_Advanced_Parameters - PowerShell | Microsoft Learn
When you supply strings as arguments to parameters that expect a different type, PowerShell implicitly converts the strings to the parameter target type. Advanced functions perform culture-invariant …
about_Parameters - PowerShell | Microsoft Learn
Jan 19, 2024 · The parameter information includes the parameter syntax, a description of the parameter, and the parameter attributes. The following sections describe the parameter attributes.
about_Parameter_Sets - PowerShell | Microsoft Learn
Sep 29, 2025 · The Parameter attribute enables you to define the parameter differently for each parameter set. For example, you can define a parameter as mandatory in one set and optional in …
about_Parameters_Default_Values - PowerShell | Microsoft Learn
Jan 2, 2025 · Describes how to set custom default values for cmdlet parameters and advanced functions.
Functions - PowerShell | Microsoft Learn
Jan 23, 2025 · Learn how to create reusable PowerShell functions, implement best practices, and avoid common pitfalls in function design, error handling, and parameter validation.
about_Functions - PowerShell | Microsoft Learn
Jul 16, 2025 · You can use parameters with functions, including named parameters, positional parameters, switch parameters, and dynamic parameters. For more information about dynamic …
about_Functions_Advanced_Parameters - PowerShell | Microsoft Learn
PowerShell 3.0 以降では、 @args でスプラッティングを使用して、コマンド内のパラメーターを表すことができます。 スプラッティングは、シンプルで高度な機能で有効です。 詳細については、「 …
Parameter Attribute Declaration - PowerShell | Microsoft Learn
Jan 6, 2025 · The Parameter attribute identifies a public property of the cmdlet class as a cmdlet parameter.
Types of Cmdlet Parameters - PowerShell | Microsoft Learn
Feb 25, 2025 · Positional and named parameters accept single arguments or multiple arguments separated by commas. Multiple arguments are allowed only if the parameter accepts a collection …
about_CommonParameters - PowerShell | Microsoft Learn
The common parameters are a set of cmdlet parameters that you can use with any cmdlet. They're implemented by PowerShell, not by the cmdlet developer, and they're automatically available to any …