Execution of Scripts is Disabled on this System
When you try and run a #PowerShell Script and you are faced with the Error “Execution of Scripts is Disabled”
The quick work around for this is to change the current Execution Policy using the following.
Lets Change the Execution Policy by running a #OneLiner
1 |
Set-ExecutionPolicy Unrestricted |
On the next screen select ‘Yes’ to Continue
Lets rerun the script again after setting the “Execution Policy”
After setting the ‘Execution Policy’ the Script is running with our any issues.
Be First to Comment