About 50,800 results
Open links in new tab
  1. How to handle command-line arguments in PowerShell

    How to handle command-line arguments in PowerShell Asked 15 years, 11 months ago Modified 1 year, 4 months ago Viewed 983k times

  2. command line - 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 to pass command-line arguments to a PowerShell ps1 file

    Aug 18, 2009 · For years, I have used the cmd/DOS/Windows shell and passed command-line arguments to batch files. For example, I have a file, zuzu.bat and in it, I access %1, %2, etc.

  4. Passing a variable to a powershell script via command line

    Powershell's built-in functionality allows for named and unnamed (aka positional) arguments, mandatory and optional arguments with default values and automatically generates help. That is a lot to throw …

  5. How to pass boolean values to a PowerShell script from a command …

    I have to invoke a PowerShell script from a batch file. One of the arguments to the script is a boolean value: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -File .\RunScrip...

  6. Powershell - How to give args to a powershell script launched from ...

    Jun 29, 2023 · Due to a design limitation in Windows PowerShell, Boolean values cannot be passed via powershell.exe 's -File parameter. The workaround - which is no longer necessary in PowerShell …

  7. How to pass array of arguments to Powershell commandline

    Nov 7, 2012 · I am trying to pass array of arguments to powershell script file. I was trying to pass the commandline like this in command line. Powershell -file "InvokeBuildscript.ps1" "z:\\" "Component1","

  8. How to run an EXE file in PowerShell with parameters with spaces and ...

    Nov 4, 2009 · When you invoke an EXE file like this with complex command line arguments it is usually very helpful to have a tool that will show you how PowerShell sends the arguments to the EXE file. …

  9. How to get Command Line info for a process in PowerShell or C#

    Jul 10, 2013 · If we've started a process and passed some parameters, how to get the command line parameters of the running process by C# or PowerShell?

  10. Pass Powershell parameters within Task Scheduler

    Jun 16, 2017 · I recommend scheduling the task to use the -File parameter rather than -Command. Example: Program/script: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Add …