0

Hey guys I can't seem to get Scripts to run in the VS code editor. Your help would be greatly appreciated!

  • 2
    On Windows workstations, PowerShell script execution is _disabled_ by default. Enable it with [`Set-ExecutionPolicy`](https://docs.microsoft.com/powershell/module/microsoft.powershell.security/set-executionpolicy).`-Scope` accepts one of 3 scopes; more specific ones have higher precedence: `LocalMachine` (requires admin rights), `CurrentUser`, or `Process` (current process only). The PowerShell CLI accepts a process-specific `-ExecutionPolicy ` too . Execution policies can also be set via GPO, in which case they cannot be changed or overridden via `Set-ExecutionPolicy` or the CLI. – mklement0 Jul 26 '22 at 19:04
  • 1
    If your problem is _not_ related to PowerShell's execution policies, please ask a new question that explains the problem in detail, ideally in the form of a [mcve]. [How to ask a good question](http://stackoverflow.com/help/how-to-ask) contains general tips. – mklement0 Jul 26 '22 at 19:06

0 Answers0