About 144,000 results
Open links in new tab
  1. windows - How to run a PowerShell script - Stack Overflow

    PS> .\run_import_script.ps1 (enter) Or: you can run the PowerShell script from the Command Prompt (cmd.exe) like this: powershell -noexit "& …

  2. How to run powershell script from .ps1 file? - Stack Overflow

    Oct 23, 2019 · There are several ways to run a .ps1 file. The simplest way is to right-click the file and choose 'Run with PowerShell'. As others have suggested, you can also run your .ps1 file …

  3. powershell - How to execute a .ps1 from another .ps1 file

    Feb 24, 2015 · I have two PowerShell files. a.ps1 and b.ps1. At a center point in a.ps1 I want to start executing code in b.ps1 and terminate a.ps1 script. How to do it considering that both …

  4. Call PowerShell script PS1 from another PS1 script inside …

    If you open the ISE by right clicking a script file and selecting edit then open the second script from within the ISE you can invoke one from the other by just using the normal .\script.ps1 …

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

    Aug 18, 2009 · Just for completeness - regarding quoting (and passing tab chars & interoperability); if you have a 'SetTabEV.cmd' named Command Prompt script, to set a "Tab" …

  6. how to run a powershell script as administrator - Super User

    Feb 12, 2010 · In the Target: section, make sure you specify powershell.exe -f before your script path. This will enable Run as Administrator option in the Advanced... Tab. Click Apply; Click …

  7. How to run powershell script (.ps1) in windows terminal …

    Apr 3, 2021 · In other words, you use the powershell.exe as an medium through which you run the script and not as the medium in which the script is run. This means that once the chosen …

  8. How to enable execution of PowerShell scripts? - Super User

    Type the following command to run the script and press Enter: & "C:\PATH\TO\SCRIPT\first_script.ps1" In the above command, make sure to change …

  9. How to Execute Powershell Script AS Powershell 7 from Command …

    May 28, 2020 · Just run. pwsh testscript_writefile.ps1 instead of. powershell testscript_writefile.ps1 The powershell command launches PowerShell 5 which is based on …

  10. powershell - Why is my locally-created script not allowed to run …

    When you run a .ps1 PowerShell script you might get the message saying “.ps1 is not digitally signed. The script will not execute on the system.” To fix it you have to run the command …

Refresh