About 515,000 results
Open links in new tab
  1. How to Execute Powershell Script AS Powershell 7 from Command …

    May 28, 2020 · When I run that same .PS1 script from command prompt using powershell testscript_writefile.ps1, I get: Name Value ---- ----- PSVersion 5.1.14393.3471 PSEdition …

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

  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 …

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

  5. Run PowerShell script as a different user and elevated

    Jan 21, 2021 · Is the script directory local or on the network? As you've noticed, starting a new instance of powershell with runas won't change the user, and runasuser won't elevate the …

  6. How to run program from command line with elevated rights

    Oct 15, 2009 · Is there a way to run a program or command with elevated rights when I am already in a non-elevated command line? Exactly the same action that would be performed …

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

  8. 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 `&` …

  9. How can I run psd1 and psm1 files in powershell? - Super User

    Aug 28, 2020 · I tried .\script.psd1 and .\script.psm1. How can I run it? Yes, I already set the execution policy and I want to run the script from a directory somewhere on my desktop or …

  10. Run Bash script in background and exit terminal - Super User

    Apr 11, 2017 · Is it possible to launch a command or Bash script exit terminal and NOT interrupt command? My solution was to run cron at a specific time of day, but I'm sure there is …