Saturday, March 1, 2014

Powershell - The execution of scripts is disabled on this system

I tried to run some scripts in Powershell yesterday on my new SharePoint server, but was unable to do so and I got this message: "The execution is disabled on this system".

The solution to this problem is very simple. Just write the following command:

Set-ExecutionPolicy Unrestricted

Now you will be able to run your ps1 scripts in Powershell.