0

I have a PowerShell execution policy problem. At first I thought it was just because I was trying to run a script from a GitHub project, but I can't even run my own scripts. I didn't have this problem in the past, and I don't know what could have changed between then and now.

> script.ps1 cannot be loaded because the exe
cution of scripts is disabled on this system. Please see "get-help about_signing"
 for more details.

1 Answer 1

2

You'll need to check and potentially adjust the current policy for both the x86 and x64 versions of PowerShell (if applicable).

Use Get-ExecutionPolicy to check the current policy, and adjust accordingly with Set-ExecutionPolicy.

Refer to Using the Set-ExecutionPolicy Cmdlet for a description of the execution policies.

Sign up to request clarification or add additional context in comments.

3 Comments

I did that and it's still showing the same error. I set it to Unrestricted
Set it to Bypass or do RMB\Properties\Unblock on the script.
Oh, yes, and check in both x86 and x64 PS consoles.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.