You have to set your execution policy to Unrestricted not RemoteSigned
. According to Set-ExecutionPolicy:
RemoteSigned. Requires that all scripts and configuration files downloaded from the Internet are signed by a trusted publisher. The
default execution policy for Windows server computers.
Since 99% of all PowerShell scripts are unsigned, 99% of the time you will not be able to run them under this policy.
- Open PowerShell as Adminstrator.
- Run:
.
Set-ExecutionPolicy -ExecutionPolicy Unrestricted