About 50 results
Open links in new tab
  1. Running a command as Administrator using PowerShell?

    Sep 12, 2016 · Is there a way of supressing windows If you want to run powershell as administrator? For applications in which you need to run this silently having your user asked can be bothering.

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

    Feb 12, 2010 · I use it to start the powershell console as administrator. A similar result is to create a ps1 file with Start-Process powershell.exe -Verb RunAs.

  3. Run PowerShell script as a different user and elevated

    Jan 21, 2021 · Then execute the script elevated from that local copy instead. Execute the Start-Process Powershell a little differently than you were executing it for it to take the action of the script logic …

  4. How open PowerShell as administrator from the run window

    Here's one way to open powershell (or run any command) as admin: press the Windows key (or control-escape) to bring up the Start Menu. Type the command you want to run.

  5. Windows Powershell always launches as admin - Super User

    Aug 18, 2022 · Launching Powershell from any source, although I usually use the Win + X or even when Shift clicking to open powershell in explorer. I checked the shortcut for Group3 in WinX, and even …

  6. 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 unsigned scripts by entering:

  7. working directory - How do I run a PowerShell script as administrator ...

    Feb 25, 2021 · I also tried this "powershell.exe -ExecutionPolicy Bypass -NoExit -File "C:\project\test.ps1" " I can run in normal way but cannot run as administrator, because when I run …

  8. Run a PowerShell script from a cmd batch as admin

    Jan 17, 2022 · I have a PowerShell setup which I want to execute on a computer where perhaps the execution policy is restricted and requires admin rights. Ideally, I could wrap it in a cmd batch like …

  9. powershell - How to run an application as "run as administrator" from ...

    When I run this through the command prompt, my testscript is running successfully. I want to run it as administrator (as if I have created a desktop shortcut and run as administrator.

  10. run CMD as administrator in PowerShell - Stack Overflow

    Nov 11, 2018 · I'm trying to execute a command prompt as administrator by using powershell. (like when you press right click on cmd icon and choose run as administrator). what should I add to the following …