Skip to content

running scripts is disabled on system #13

Open
@shawnlaffan

Description

@shawnlaffan

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions