我正在尝试在Windows 7系统上使用WinSCP PowerShell module。这就是我所做的:
Set-ExecutionPolicy Unrestricted
Install-Module -Name WinSCP
(导致无输出)。Yes
NuGet-anycpu.exe
醇>
最后,我通过执行命令Open-WinSCPSession
进行了一次健全性检查,结果导致以下错误:
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
这表明该模块未正确安装。关于我做错了什么的任何建议?