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

    it absolutely answers the question: how do I run a powershell script? answer: startup powershell console, then execute the script. easy. simple. Works on Linux also.

  2. How to run a PowerShell script from a batch file - Stack Overflow

    Powershell.exe -executionpolicy remotesigned -File C:\Users\SE\Desktop\ps.ps1 Otherwise PowerShell considers the arguments a line to execute and while Set-ExecutionPolicy is a …

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

    Oct 23, 2019 · Powershell.exe -executionpolicy remotesigned -File "C:\Path\script.ps1" If this still isn't working, please execute your batch file via CMD (copying the path, wrapped in quotation …

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

    I want call execution for a myScript1.ps1 script inside a second myScript2.ps1 script inside Powershell ISE. The following code inside MyScript2.ps1, works fine from Powershell …

  5. How to execute a PowerShell script using C# - Stack Overflow

    Apr 28, 2020 · Here's the full code that will run a PowerShell script when you create a console app in Visual Studio that will ByPass any restrictions. Just change the ps1File variable to your …

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

    Jan 28, 2015 · How is it possible to run a PowerShell script without displaying a window or any other sign to the user? In other words, the script should run quietly in the background without …

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

    Dec 5, 2012 · How to run a Powershell script from the command line and pass a directory as a parameter Asked 12 years, 11 months ago Modified 1 year, 3 months ago Viewed 499k times

  8. Running a command as Administrator using PowerShell?

    Sep 12, 2016 · Here is how to run a elevated powershell command and collect its output form within a windows batch file in a single command (i.e not writing a ps1 powershell script).

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

    Dec 26, 2016 · I'm wondering if there's a way to run a PowerShell script such that both the commands and the output of each line of the script are printed. For example, in Bash you …

  10. Execute PowerShell Script from C# with Commandline Arguments

    Feb 9, 2009 · The script uses a commandline argument such as "-key Value" whereas Value can be something like a path that also might contain spaces. I don't get this to work. Does anyone …