How to enable execution of PowerShell scripts?
Problem
When I try to execute my PowerShell script I get this error: File C:\Common\Scripts\hello.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details. At line:1 char:13 + .\hello.ps1 <<<< + CategoryInfo : NotSpecified: (:) [], PSSecurityException + FullyQualifiedErrorId : RuntimeException
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: How to enable execution of PowerShell scripts?
Start Windows PowerShell with the "Run as Administrator" option. Only members of the Administrators group on the computer can change the execution policy. Enable running unsigned scripts by entering: This will allow running unsigned scripts that you write on your local computer and signed scripts from Internet. See also Running Scripts at Microsoft TechNet Library.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix