/ Execution

How to Set the Execution Policy in Powershell 5.0

I ran into a problem in Windows 10 (build 10130) where I couldn't set the Powershell execution policy to "unrestricted". I needed this setting on my local PC to test out some scripts. Luckily a fellow Redditor had the solution and . The syntax has changed slightly in PS 5.0. Here is the solution:

From an elevated PS window (i.e. Run As Administrator), execute this:
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Verbose
Done :)
posted it here