About 44,400 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 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 …

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

  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 · 32 Using the flag -Command you can execute your entire powershell line as if it was a command in the PowerShell prompt:

  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 can I run a PowerShell script with white spaces in the path …

    Aug 18, 2017 · 60 The -File parameter If you want to run powershell.exe -File from the command line, you always have to set paths with spaces in double quotes ("). Single quotes (') are only …

  10. Executing an EXE file using a PowerShell script

    Jan 9, 2011 · I'm trying to execute an EXE file using a PowerShell script. If I use the command line it works without a problem (first I supply the name of the executable and series of …