About 51 results
Open links in new tab
  1. How do I make parameters mandatory in PowerShell?

    Aug 23, 2011 · Make sure the "param" statement is the first one (except for comments and blank lines) in either the script or the function. You can use the "Get-Help" cmdlet to verify the …

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

    powershell.exe itunesForward.ps1 Is it possible to pass an argument from the command line and have it applied in the script instead of the hardcoded 30 seconds value?

  3. How do I provide param attributes for a script in PowerShell?

    How do I provide param attributes for a script in PowerShell? Asked 13 years, 2 months ago Modified 6 years, 11 months ago Viewed 36k times

  4. How do I pass multiple parameters into a function in PowerShell?

    Function parameters are actually a place where PowerShell shines. For example, you can have either named or positional parameters in advanced functions like so:

  5. Switch Parameter in Powershell - Stack Overflow

    Jun 20, 2021 · If you want to pass an argument to your .ps1 script from an outside source you should add a param(...) block at the top of your script. I'm following with the code you already …

  6. In powershell is there a difference between having param in a …

    May 21, 2020 · In powershell is there a difference between having param in a function or putting parameters in the function? Asked 5 years, 6 months ago Modified 3 years, 11 months ago …

  7. Passing multiple values to a single PowerShell script parameter

    Passing multiple values to a single PowerShell script parameter Asked 12 years, 9 months ago Modified 3 years, 10 months ago Viewed 373k times

  8. How do I get help messages to appear for my Powershell script ...

    I have a powershell script (setup.ps1), that we use as the entry point for our development environment setup scripts. It takes a parameter: param( …

  9. PowerShell 2.0 and "The term 'Param' is not recognized as the …

    Aug 22, 2009 · The term 'Param' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the …

  10. what's the difference between parameter and argument in …

    Sep 6, 2011 · I'm confused about parameter and argument in powershell. can you help me explain what is difference between param and arg ? Thanks.