Why setting Powershell to set-executionpolicy remotesigned fails?

Solution 1:

You need to run powershell as an administrator to set the execution policy.

Once you've set it to remotesigned, you can run powershell as a regular user.

Solution 2:

Just go to the controll panel -> administrative tools -> Windows PowerShell Modules (opens a powershell) and type the usual set-executionpolicy remotesigned. That's it.