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

  2. how to run a powershell script as administrator - Super User

    Feb 12, 2010 · I use it to start the powershell console as administrator. A similar result is to create a ps1 file with Start-Process powershell.exe -Verb RunAs.

  3. Correct syntax to pass an argument to my parameter in a …

    Dec 9, 2022 · Supporting Resources Functions Pass parameters to a PowerShell script Param To define arguments by name, use a param statement, which is a comma separated list of …

  4. What is the ampersand sign (&) before commands in PowerShell?

    Feb 9, 2023 · The example below shows a script filename that contains spaces. When you try to execute the script, PowerShell instead displays the contents of the quoted string containing …

  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. Powershell script to stop services and set to manual

    Jan 17, 2023 · I am looking for a script to run on several remote servers at once to stop a particular service if it is running and set it to manual startup. That bit is the easy part, I would …

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

    Mar 2, 2021 · 0 I solved creating a script , .ps1 file , in Powershell ISE and after this I went to Powershell window and type this command to allow script to run : Set-ExecutionPolicy …

  8. Downloading Google Chrome using Powershell - Super User

    Oct 23, 2023 · Is it possible to download the latest version of Google Chrome using Powershell. I'm an IT Admin looking at putting a script together for our field techs. Since upgrading our …

  9. PowerShell Script Fails via Task Scheduler (SYSTEM)

    Jul 3, 2025 · Action: powershell.exe -ExecutionPolicy Bypass -File "path\to\script.ps1" The script works perfectly when run manually in PowerShell ISE, but fails or does nothing when triggered …

  10. How to open a firewall port in Windows using Power Shell

    Nov 20, 2014 · You can use this command from the Powershell level. If you absolutely must use Powershell, you can use something like the script below (for the port 80 as well):