About 7,510,000 results
Open links in new tab
  1. how to run a powershell script as administrator - Super User

    Feb 12, 2010 · In the Target: section, make sure you specify powershell.exe -f before your script path. This will enable Run as Administrator option in the Advanced... Tab. You can now run …

  2. PowerShell Run As Different User: A Quick Guide

    To run a PowerShell script or command as a different user, use the `Runas` command with the `/user` flag to specify the username, as shown in the following example: Start-Process …

  3. Run PowerShell script as a different user and elevated

    Jan 21, 2021 · As you've noticed, starting a new instance of powershell with runas won't change the user, and runasuser won't elevate the process. You'll need to do them both in the opposite …

  4. How to Run PowerShell Script as Admin: A Simple Guide

    One of the easiest ways to execute a PowerShell script as an administrator is through the context menu. Simply locate your script file, then: Right-click on the script (.ps1) file. Select "Run with …

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

    Mar 11, 2015 · Start-Process -FilePath "powershell" -Verb RunAsUser will pop up a dialog for the user to enter the credentials of the target user. This command works for me: If the $FILE is on …

  6. How can I call a PowerShell script as a particular user from the ...

    Aug 12, 2014 · To do so, type the following in an elevated (i.e. run as administrator) command prompt: Next, write a script with the stored credentials you want. Note that this will be stored …

  7. PowerShell Run As: Mastering Elevated Commands

    To run a PowerShell script or command as a different user or with elevated privileges, you can use the "Run as" feature, which can be invoked through the following command: Start-Process …

  8. 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. This will allow running …

  9. How to Run PowerShell Script as Administrator – TheITBros

    There are several ways to run PowerShell scripts as an administrator interactively and non-interactively — which is suitable for automation. An elevated PowerShell session is required to …

  10. Running a command as Administrator using PowerShell?

    Sep 12, 2016 · I'm wondering how to do this with a PowerShell script. I do not want to have to enter my password; I just want to mimic the right-click Run As Administrator method. …

  11. Some results have been removed
Refresh