About 659,000 results
Open links in new tab
  1. 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.

  2. 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 …

  3. 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 …

  4. about_Functions_Advanced_Parameters - PowerShell | Microsoft …

    The following example declares a Value parameter that's mandatory and a Remaining parameter that accepts all the remaining parameter values that are submitted to the function.

  5. How to Pass Variables to a PowerShell Script?

    Oct 27, 2025 · In this detailed tutorial, you’ll learn multiple ways to pass variables to PowerShell scripts, from command-line arguments to environment variables, with clear examples and best …

  6. Pass Parameters - PowerShell - SS64.com

    Within a script or function you can refer to unnamed arguments using the $args array, for example passing all the arguments through to a cmdlet. You can also refer to specific arguments by …

  7. Run PowerShell Script With Parameters: A Simple Guide

    Discover how to run PowerShell script with parameters effortlessly. This guide offers clear examples and tips to enhance your scripting skills.

  8. PowerShell Command Line Arguments: How to Pass Parameters to a Script ...

    Sep 17, 2025 · In this guide, we’ll cover everything you need to know about passing parameters to PowerShell scripts through command-line arguments, with plenty of examples and practical …

  9. How to Pass an Argument to a PowerShell Script - Delft Stack

    Mar 11, 2025 · This tutorial will teach you how to pass an argument to a PowerShell script. Learn about defining parameters, validation, and using switch parameters to enhance your scripting …

  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 …