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

  2. How to handle command-line arguments in PowerShell

    What is the "best" way to handle command-line arguments? It seems like there are several answers on what the "best" way is and as a result I am stuck on how to handle something as …

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

    Powershell is a shell language and it's common for shell languages to use spaces as a token separator. I wouldn't say Powershell is being different here, it's right in line with other system …

  4. How to pass command-line arguments to a PowerShell ps1 file

    Aug 18, 2009 · I think the key is in your step 6 where you pass in the parameters to powershell.exe. Daniel says he has associated PS1 files with PowerShell but that doesn't pass …

  5. How do I make parameters mandatory in PowerShell?

    Aug 23, 2011 · How do I make parameters mandatory in PowerShell? Asked 14 years, 4 months ago Modified 1 year, 5 months ago Viewed 161k times

  6. Switch Parameter in Powershell - Stack Overflow

    Jun 20, 2021 · To assign a value to a switch parameter when calling a function or script you use a slightly different syntax to regular parameters - if you want it to be false you can just omit it, …

  7. powershell - Invoke-WebRequest, POST with parameters - Stack …

    Dec 19, 2019 · Invoke-WebRequest, POST with parameters Asked 12 years, 6 months ago Modified 1 year, 6 months ago Viewed 479k times

  8. Pass Powershell parameters within Task Scheduler

    Jun 16, 2017 · So while -File based solutions may simplify the invocation of Powershell scripts from Task Scheduler, this limitation needs to be borne in mind. † From the Microsoft docs: The …

  9. powershell - How do I pass named parameters with Invoke …

    Nov 19, 2010 · As long as I use default parameters, it works fine. However, the script has 2 named [switch] parameters (-Debug and -Clear) How can I pass the switched parameters via …

  10. Getting all Named Parameters from Powershell including empty …

    I'm trying to find a way to get all parameter information from a powershell script. Ex script: