Friday, February 13, 2015

Microsoft.PowerShell_profile.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see “get-help about_signing” for more details.

Check the current execution-policy

PS C:\Windows\System32> Get-ExecutionPolicy
Restricted
PS C:\Windows\System32>


To change the current execution-policy use:

PS C:\Windows\System32> Set-Executionpolicy -ExecutionPolicy Unrestricted

Note: this command must be run elevated (Start Powershell using ‘Run as Administrator’)

No comments:

Post a Comment