About 508,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 the -f or -File …

  2. 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.

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

  4. How to run a PowerShell script at logon for all (current and future ...

    Oct 13, 2021 · A more elaborate RunAs program. Another solution might be to use the Task Scheduler to schedule running a script as administrator, but with a trigger that is never activated, and to run it …

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

    Jan 7, 2016 · 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% …

  6. 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 runas won't …

  7. 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 somewhere?

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

    May 28, 2020 · Name Value ---- ----- PSVersion 5.1.14393.3471 PSEdition Desktop How can I execute a Powershell script AS Powershell 7 instead of Powershell 5?

  9. How can I run a shell script in Windows? - Super User

    Jan 2, 2012 · There are other Unix-like subsystems that run under Windows, including MinGW and the Windows Services for UNIX package provided by Microsoft. Or, instead of trying to write and run …

  10. 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.