About 109,000 results
Open links in new tab
  1. about_Parameters - PowerShell | Microsoft Learn

    Jan 19, 2024 · Describes how to work with command parameters in PowerShell. Most PowerShell commands, such as cmdlets, functions, and scripts, rely on parameters to allow users to select …

  2. PowerShell Script Parameters: Getting Started Guide

    Feb 27, 2024 · Master PowerShell script parameters by learning to define, customize, and leverage attributes like default values and aliases.

  3. Pass Parameters - PowerShell - SS64.com

    To define arguments by name, use a param statement, which is a comma separated list of variables, optionally prefixed with a [data type] and/or with = default values.

  4. How can I pass an argument to a PowerShell script?

    Both this and the accepted solution work, the main difference is that this reads parameters by position, while the accepted solution does it by name. When multiple parameters need to be …

  5. Pass Params to PowerShell Script: A Quick Guide

    Passing parameters to a PowerShell script allows you to make your script more dynamic and tailored to specific needs by providing inputs at runtime. Here's a simple code snippet …

  6. PowerShell Param Explained with Examples - Itechguides

    Nov 26, 2021 · Learn how to add parameters to your PowerShell scripts and advanced functions. The syntax of PowerShell Param is… To add a parameter to a function, begin with the word …

  7. Powershell: Parameters for Scripts and (Advanced) Functions

    Jan 19, 2021 · Some notes on parameters for scripts or (advanced) functions in Powershell. At the beginning of the script, add CmdletBinding() and a Param() block. Note that in most cases, …

  8. How to Use Parameters in PowerShell Part I - Simple Talk

    Sep 17, 2019 · Fortunately, like most languages, PowerShell permits the use of parameters, but, like many things in PowerShell, there’s more than one way of doing it. I will show you how to …

  9. PowerShell Function Parameter Syntax: Correctly Passing

    Jul 22, 2025 · Explore how to properly pass arguments to PowerShell functions, covering space separation, named vs. positional parameters, splatting, and advanced parameter features.

  10. Parameters for PowerShell Scripts and Functions

    May 17, 2024 · Using parameters for your Scripts and Functions is very powerful. You don't have to hardcode things in them, making running them from a command line easier. This blog post …