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

    How do I run a PowerShell script? I have a script named myscript.ps1 I have all the necessary frameworks installed I set that execution policy thing I have followed the instructions on this …

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

    Oct 23, 2019 · Create a batch file which points at your .ps1 file. You may be required to run the batch file with elevated permissions, depending on your access levels (the logged in account …

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

    Mar 28, 2018 · 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 …

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

    Apr 28, 2020 · Running .ps1 from C# is a really common thing, with many examples all over the web and videos on Youtube showing how/with examples. Call a Powershell script from c# …

  5. Running PowerShell Script from Python - Stack Overflow

    Jul 24, 2019 · I'm trying to run a Powershell Script ( check below ) First remark, my Powershell script, when running with Powershell works fine, giving the expected result ( closing all open …

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

    Dec 5, 2012 · Despite Foo.ps1 being in the directory from where I am calling Powershell, this results in: The term '.\Foo.ps1' is not recognized as the name of a cmdlet, function, script file, …

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

    Feb 12, 2010 · A shortcut to script.ps1 works, as does a shortcut to powershell.exe -f script.ps1, but the latter can be set to run as administrator (see powershell.exe /? for the explanation of …

  8. Run PowerShell script as a different user and elevated

    Jan 21, 2021 · Are you automating something or just running a script occasionally? Is the script directory local or on the network? As you've noticed, starting a new instance of powershell with …

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

    Rather than hard-coding the entire path to the PowerShell script though, I recommend placing the batch file and PowerShell script file in the same directory, as my blog post describes.

  10. Running PowerShell as another user, and launching a script

    Mar 11, 2015 · In windows server 2012 or 2016 you can search for Windows PowerShell and then "Pin to Start". After this you will see "Run as different user" option on a right click on the start …

Refresh