2

我正在尝试在 Windows 7 系统上使用WinSCP PowerShell 模块。这就是我所做的:

  1. 已安装 Windows PowerShell 5.0 版。
  2. 安装Windows管理框架v5.0
  3. 以管理员身份启动 PowerShell
  4. 执行的命令Set-ExecutionPolicy Unrestricted
  5. 执行的命令Install-Module -Name WinSCP(导致没有输出)。
  6. Yes在要求下载和安装时选择NuGet-anycpu.exe

最后,我通过执行 command 进行了完整性检查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

这表明该模块未正确安装。关于我做错了什么有什么建议吗?

4

0 回答 0