About 90,200 results
Open links in new tab
  1. How to enable execution of PowerShell scripts? - Super User

    Start Windows PowerShell with the "Run as Administrator" option. Only members of the Administrators group on the computer can change the execution policy. Enable running …

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

    May 28, 2020 · In order for me to get this to work, I had to use the fully qualified address for Powershell, i.e.: "C:\Program Files\PowerShell\7\pwsh.exe". Only then was I actually running …

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

  4. How to execute a .ps1 from another .ps1 file? - Super User

    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 …

  5. Run PowerShell script as a different user and elevated

    Jan 21, 2021 · 8 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 …

  6. Run Powershell script when you open Powershell - Super User

    Mar 8, 2015 · Is it possible to run a Powershell script when you run Powershell? As in, double click the Powershell icon and open the window. Is there some type of "auto-run" setting …

  7. How can I run a Powershell command from a folder?

    May 31, 2024 · 1. Create a powershell script. The first command/cmdlet will be go to that folder: cd c:\path\to\your\folder. 2. Then, the other powershell commands to rename the files. Save …

  8. How to run a PowerShell command silently? - Super User

    Jun 14, 2018 · 10 Run a PowerShell Command Silently from a Prompt As stated. . . "You can use PowerShell.exe to start a PowerShell session from the command line of another tool, such as …

  9. Is it possible to have scripts run in Windows Terminal by default?

    Mar 24, 2021 · The syntax for opening a new Windows Terminal session and launching a PowerShell script would be wt new-tab powershell.exe -f c:\path\to\script.ps1. That will end up …

  10. windows - run powershell command from cmd - Super User

    May 24, 2016 · 0 I placed the following commands into a batch file to reset Edge (which has been giving some problems from time to time). The batch file was then run at Administrator level. …