Powershell Tutorial Online

Powershell-Security-Policy


Set ExecutionPolicy on the Server

Setting
Unrestricted
No requirements; all scripts allowed

RemoteSigned
All local scripts allowed; only signed remote scripts

AllSigned
All scripts need to be signed

Restricted
No scripts allowed
You can set PowerShell’s execution policy by using the following cmdlet:
PS> C:\ Set-ExecutionPolicy
e.g. Set-ExecutionPolicy Unrestricted