apr 1 blog

Powershell – Execution of scripts is disabled

If you received an error similar the one below when trying to execute PowerShell Scripts:

File >>FILENAME< is disabled on this system. Please see “get-help about_signing” for more details.

At line:1 char:2
+ & <<<< ‘.>>FILENAME<<.ps1′
+ CategoryInfo : NotSpecified: (:) [], PSSecurityException
+ FullyQualifiedErrorId : RuntimeException

 

Then open your Powershell prompt and execute the statement below:

Set-ExecutionPolicy RemoteSigned
Share on FacebookTweet about this on TwitterShare on LinkedInShare on Google+