Powershell: The execution of scripts is disabled on this system

File Foo.ps1 cannot be loaded because the execution of scripts is disabled on this system.

If you get an error messag like this you have to change the ExecutionPolicy to Unrestricted to allow the execution of local scipts (run with admin rights):

PS C:\> Set-ExecutionPolicy Unrestricted

Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
http://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): y
PS C:\>

That's it Smile