best Solution for this error : “cannot be loaded because running scripts is disabled on this system”
Problem: PowerShell – Running scripts is disabled on this system.
This “cannot be loaded because running scripts is disabled on this system” error or issue faced when the simple open the PowerShell execution execute policy doesn’t supports us to execute scripts. We also get the same time multiple error when tried to execute a PowerShell script.
Solution:
PS C:\> Set-ExecutionPolicy RemoteSigned
Also Read: Running scripts is disabled on this system.
Alternate Way
PS C:\> get-executionpolicy
c:\> powershell -ExecutionPolicy ByPass -File script.ps1