Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

I am trying to run custom module via remotely but it not works #22

@SamPosh

Description

@SamPosh

I found this module very useful. Our app had tightly coupled remoting solution. But this is loosely coupled and easy to use. But i am facing a problem with custom modules.
In our remote machine ,we have installed our product's module. It is a binary module.
When i am trying to run the module via Remotely ,it throws exception.

I even tried to import that first then run the cmdlet, but still it throws exception.

$volumes = remotely {
import-module 'C:\Program Files\Our application\bin ipmo\StorageVolume.Powershell.dll'
Get-StorageVolume
}
$volumes.GetError()

It throws exception as below.

The term 'Get-StorageVolume' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
+ CategoryInfo : ObjectNotFound: (Get-StorageVolume:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
+ PSComputerName : 10.21.74.128

Can't we use custom modules which are not installed in PSModulepath?

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