About 971,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 unsigned scripts by entering:

  2. PowerShell Scripting - The Basics | Tutorials - Ten Forums

    May 13, 2018 · A PowerShell script is a collection of commands and cmdlets to be run in logical order, previous lines in script determining values and variables in command lines thereafter. The principle is …

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

    Dec 9, 2022 · In this same script which defines the function, you also call the function with the named parameter but you have left out the variable to pass to the function on that call.

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

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

  6. How to enable PowerShell script execution? - Super User

    May 7, 2020 · How to enable PowerShell script execution? Ask Question Asked 5 years, 8 months ago Modified 4 years, 6 months ago

  7. Is it possible to execute a PowerShell script absolutely silently from ...

    Jun 7, 2025 · Despite the -WindowStyle Hidden option, it still shows the PowerShell window for a moment (and closes it), so it actually flashes. Is it possible to execute this command absolutely silently?

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

  9. Change PowerShell Script Execution Policy in Windows 10

    Feb 23, 2023 · How to Set PowerShell Script Execution Policy in Windows 10 The PowerShell script execution policies enables you to determine which Windows PowerShell scripts (if any) will be …

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