Skip to content

secure-file not loaded correctly #1

@Lerik

Description

@Lerik

I installed secure-file successfully in my vs project. But when I runthe command to encrypt a file, I get the next error message:

PM> secure-file\tools\secure-file -encrypt <file-path> -secret MYSECRET1234
secure-file\tools\secure-file : The module 'secure-file' could not be loaded. For more information, run 
'Import-Module secure-file'.
At line:1 char:1
+ secure-file\tools\secure-file -encrypt <file-path> -secret MYSECR ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (secure-file\tools\secure-file:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CouldNotAutoLoadModule


As the error message suggests, I decided to run Import-Module secure-file, and this is what I got:

PM> Import-Module secure-file
Import-Module : The specified module 'secure-file' was not loaded because no valid module file was found in any 
module directory.
At line:1 char:1
+ Import-Module secure-file
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (secure-file:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

Does anybody have an idea on why this is happening and what can I do?

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