Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented Unassigned: how do i import this module? [2767]

$
0
0
I have the Renci.SshNet.zip downloaded. And extracted and moved the file to 'C:\Users\name\Documents\WindowsPowerShell\Modules\Renci.SshNet'

But trying to import gives me the below error

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


PS: i am new to windows, and this might not be an issue at all, but may be due to my ignorance on windows.
Comments: ** Comment from web user: mg07647 **

This is not a Powershell module, it's a DLL and does not need to be in the Modules folder. Import it directly using the full path name:

Add-Type -Path '<your_path>\Renci.SshNet.dll'


Viewing all articles
Browse latest Browse all 1026

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>