PowerShell: "execution of scripts is disabled on this system."

I went to run a PowerShell script today and I got this error message "cannot be loaded because the execution of scripts is disabled on this system." It worked previously so I was confused as to why this happened. Maybe a Windows update forced this!

It turns out that you have to execute the PowerShell command "Set-ExceptionPolicy RemoteSigned" and Choose Y for Yes when prompted. This all worked again.

I found the solution here: windows server 2008 r2 - PowerShell says "execution of scripts is disabled on this system." - Stack Overflow

Add comment

Loading