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

    Or: you can run the PowerShell script from the Command Prompt (cmd.exe) like this: powershell -noexit "& ""C:\my_path\yada_yada\run_import_script.ps1""" (enter) according to Invoking a …

  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. Call PowerShell script PS1 from another PS1 script inside …

    Similarly, I can run my custom scripts by just putting the name of the script in the script-block ::sid.ps1 is a PS script I made to find the SID of any user ::it takes one argument, that …

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

  5. How to run a Powershell script from the command line and pass a ...

    Dec 5, 2012 · you are calling a script file not a command so you have to use -file eg : powershell -executionPolicy bypass -noexit -file "c:\temp\test.ps1" "c:\test with space" for PS V2

  6. How to run a PowerShell script with verbose output?

    Dec 26, 2016 · Execute the script in PowerShell on Linux: /$ pwsh PS /> ./Test-Output.ps1 -Verbose Execute the script using PowerShell.exe on Windows: C:\> powershell.exe Test …

  7. Stop Powershell from exiting - Stack Overflow

    Feb 20, 2012 · One-time Fix: Run your script from the PowerShell Console, or launch the PowerShell process using the -NoExit switch. e.g. PowerShell -NoExit …

  8. How to run a PowerShell script without displaying a window?

    Jan 28, 2015 · I found a way to do this by compiling a PowerShell script to a Windows executable. Third party modules are required to build the executable but not to run it. My end goal was to …

  9. Running a command as Administrator using PowerShell?

    Sep 12, 2016 · You can create a batch file (*.bat) that runs your powershell script with administrative privileges when double-clicked. In this way, you do not need to change anything …

  10. PowerShell Scripting - Run a Script from Shortcut | Tutorials - Ten …

    Nov 7, 2017 · A PowerShell script is a collection of commands and cmdlets to be run in logical order, previous lines in script determining values and variables in command lines thereafter. …