xxxxxxxxxx
cannot be loaded because running scripts is disabled. Cypress
xxxxxxxxxx
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
xxxxxxxxxx
in PowerShell window (was opened as administrator) write
> Set-ExecutionPolicy RemoteSigned
then choose yes
> y
xxxxxxxxxx
//SOLVE: cannot be loaded because running scripts is disabled on
this system
1. In cmd, (run Administrator) type "Get-ExecutionPolicy -List" (without quotes).
2. Then run "Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine" (change LocalMachine with the one you work with)
xxxxxxxxxx
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
xxxxxxxxxx
powershell -ExecutionPolicy Bypass -File WhateverFileYourTryingToRun.ps1