https://sshnet.codeplex.com/downloads/get/944154
http://sshnet.codeplex.com/downloads/get/944155
"http://www.powershelladmin.com/w/images/a/a5/SSH-SessionsPSv3.zip" From the http://www.powershelladmin.com/wiki/SSH_from_PowerShell_using_the_SSH.NET_library site.
I then run the below in powershell 4.0 (I do have .NET 4.0 installed).
PS C:\WINDOWS\system32> Import-Module SSH-Sessions
Import-Module : Could not load file or assembly
'file:///C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\SSH-Sessions\Renci.SshNet.dll' or one of its dependencies.
Operation is not supported. (Exception from HRESULT: 0x80131515)
At line:1 char:1
+ Import-Module SSH-Sessions
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Import-Module], FileLoadException
+ FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand
The Renci.SshNet.dll file does exist and i have attempted to manually register it, but that does not work. I am also the administrator of my system. What other dependencies am I missing to get this module imported?
Comments: ** Comment from web user: karun100 **
Hi
I am facing same issue when i do import ssh module in windows 2012 server..can some one please help:-
PS C:\Users\Administrator> Import-Module SSH-Sessions
Import-Module : Could not load file or assembly
'file:///C:\Windows\system32\WindowsPowerShell\v1.0\Modules\SSH-Sessions\Renci.SshNet35.dll' or one of its
dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
At line:1 char:2
+ Import-Module SSH-Sessions
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Import-Module], FileLoadException
+ FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand
i have tried :--
$AssemblyFile = 'path of my Renci.SshNet35.dll ' and above link says to unblock the zip file in property ..sorry not able to understand what does that mean..can you please say in detail..
I am new to power-shell does version of RencisshNet different for different for different version of power-shell..
I am using windows 2012 server.
Please help resolve this issue..
Thanks & Regards
Karun