[Solved] PowerShell Error: the script is prohibited from running on this system

Because of the problem of PowerShell execution policy, we need to configure it manually

1. Run vscode as administrator;
2. Execute: get-ExecutionPolicy; the display shows Restricted, indicating that the status is disabled;
3. Execute: set-ExecutionPolicy RemoteSigned. 4;
4. Execute get-ExecutionPolicy again, and it will show RemoteSigned;

Then there will be no more problems.

Similar Posts: