I'm trying to use the WinSCP PowerShell module on a Windows 7 system. This is what I've done:
- Installed Windows PowerShell version 5.0.
- Installed Windows Management Framwork v5.0
- Started PowerShell as Administrator
- Executed command
Set-ExecutionPolicy Unrestricted
- Executed command
Install-Module -Name WinSCP
(which result in no output). - Selected
Yes
when asked to download and installNuGet-anycpu.exe
Finally, I did a sanity check by executing command Open-WinSCPSession
, which results in the following error:
The term 'Open-WinSCPSession' 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.
At line:1 char:1
+ Open-WinSCPSession
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Open-WinSCPSession:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
This suggests that the module did not install correctly. Any suggestions as to what I've done wrong?