About 509,000 results
Open links in new tab
  1. 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 …

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

    May 28, 2020 · 9 When you run your script, it will run in the default OS Powershell host, and on Windows that will be the default OS version of Windows PowerShell, unless you specifically …

  3. Automatically run a script when I log on to Windows

    45 How can I automatically run a script when I log on to Windows? I'd like to run something like this whenever I log into my computer: echo %USERNAME% logged on at %DATE% %TIME% …

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

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

  6. How do I run multiple commands on one line in PowerShell?

    In a cmd prompt, you can run two commands on one line like so: ipconfig /release & ipconfig /renew When I run this command in PowerShell, I get: Ampersand not allowed. The `&` …

  7. Run Powershell with parameters from batch file - Super User

    Mar 2, 2021 · You can run PowerShell commands from cmd/bat files by passing the commands as an argument to the powershell command. Make you batch file look like this. Note, I have …

  8. Run part of a bash script as a different user

    Nov 28, 2023 · I am in Ubuntu 9.04. Is there a way to make part of a script run as a different (non-root) user? If it helps, the part to be run as a different user occurs at the end of the script.

  9. Run a script on start up on Windows 10 - Super User

    Learn how to run a script automatically on startup in Windows 10 with step-by-step instructions and tips.

  10. How to run batch file command with elevated permissions?

    Aug 13, 2016 · Then, when it's time to run them, use this from your non-elevated script: powershell -command "Start-Process elevated.bat -Verb runas" The -Verb runas part is what …