About 151,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. Click Apply; Click …

  2. Running a command as Administrator using PowerShell?

    Sep 12, 2016 · You can create a batch file (*.bat) that runs your powershell script with administrative privileges when double-clicked. In this way, you do not need to change anything …

  3. How do I run a PowerShell script as administrator using a shortcut?

    Feb 25, 2021 · I'm trying to run a PowerShell script as administrator using a shortcut. I have tried many ways, but it still does not work: …

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

  5. Run PowerShell script as a different user and elevated

    Jan 21, 2021 · Copy-Item "path\to\script.ps1" -Destination "C:\" -Force; Start-Process Powershell -Argumentlist '-ExecutionPolicy Bypass -NoProfile -File "C:\script.ps1"' -Verb RunAs; If you …

  6. windows - How to run a PowerShell script - Stack Overflow

    Or: you can run the PowerShell script from the Command Prompt (cmd.exe) like this: powershell -noexit "& ""C:\my_path\yada_yada\run_import_script.ps1""" (enter) according to Invoking a …

  7. uac - Running a PowerShell script as administrator without typing …

    Jul 28, 2015 · You can start a new, elevated PowerShell process to run your script e.g.: Start-Process PowerShell -verb runas -ArgumentList '-noexit','-File','path-to-script' If you don't want …

  8. powershell - I want to run Power Shell script with admin privileges ...

    Some way to run PowerShell with admin privileges: Search Powershell from the Windows search icon OR click the Windows button from the keyboard --> write Powershell --> You will see the …

  9. How do I run powershell scripts without admin rights?

    Nov 3, 2012 · type myscript.ps1 | powershell - So simple it makes me wonder why you can't just run the ps1 in the first place, but there we go. A generic version that prompts for userinput to …

  10. Run PowerShell Script As An Administrator - Windows 10 Forums

    Nov 22, 2018 · 2.2 Click on the Advanced button & set the Run as Admin checkbox. 2.3 OK, OK {you will notice the shortcut's icon change when you do this} You can now double-click on the …

Refresh