Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running scripts is disabled on system #13

Open
shawnlaffan opened this issue Feb 22, 2023 · 0 comments
Open

running scripts is disabled on system #13

shawnlaffan opened this issue Feb 22, 2023 · 0 comments

Comments

@shawnlaffan
Copy link

Running through the installation process I hit this error:

.\psperl.ps1 -Setup
.\psperl.ps1 : File C:\git\strawberry\_psperl\psperl.ps1 cannot be loaded because running scripts is disabled on this
system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ .\psperl.ps1 -Setup
+ ~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

Running this command allowed things to proceed.

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Might be worth adding a note to the installation steps.

(I have not checked if it persists after reboot, but it all works in new shells within this session).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant