Skip to content

[Bug]: The 'Set-ExecutionPolicy' command was found in the module 'Microsoft.PowerShell.Security', but the module could not be loaded.  #883

Open
@abrichr

Description

@abrichr

Describe the bug

from @LimaConnect on Discord:

Set-ExecutionPolicy : The 'Set-ExecutionPolicy' command was found in the module 'Microsoft.PowerShell.Security', but
the module could not be loaded. For more information, run 'Import-Module Microsoft.PowerShell.Security'.
At line:341 char:1
+ Set-ExecutionPolicy RemoteSigned -Scope Process -Force
+ ~~~
    + CategoryInfo          : ObjectNotFound: (Set-ExecutionPolicy:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule

Note:

Please run Import-Module Microsoft.PowerShell.Security

Possibly related:

To Reproduce

On Windows 11 Pro:

  1. Download and install OpenAdapt from website
  2. Try running OpenAdapt via Installed Apps
  3. Observe Security Warning:

image

  1. ...?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions