About 968,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. 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. …

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

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

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

  6. Powershell Script to Extract Windows Product Key - Super User

    Aug 30, 2024 · Powershell Script to Extract Windows Product Key Ask Question Asked 1 year, 3 months ago Modified 1 year, 3 months ago

  7. Run PowerShell script as a different user and elevated

    Jan 21, 2021 · Then execute the script elevated from that local copy instead. Execute the Start-Process Powershell a little differently than you were executing it for it to take the action of the …

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

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

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

    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.

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