Skip to content

kvmsetup.cmd fails due to restricted execution policy #38

Closed
@bricelam

Description

@bricelam

When the Kvm-Global-Setup function elevates, the execution policy set in kvm.cmd is lost. This results in the elevated PowerShell instance using the machine's default execution policy which, by default, is Restricted. This results in the following error that is silently swallowed.

File Home\kvm.ps1 cannot be loaded because running scripts is disabled on this
system.

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