无法安装WinSCP PowerShell模块

时间:2015-06-24 12:49:47

标签: powershell winscp-net powershell-module

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

  1. 已安装Windows PowerShell 5.0版。
  2. 已安装Windows Management Framwork v5.0
  3. 以管理员身份启动PowerShell
  4. 执行命令Set-ExecutionPolicy Unrestricted
  5. 执行命令Install-Module -Name WinSCP(导致无输出)。
  6. 当要求下载并安装Yes
  7. 时,选择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
    

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

0 个答案:

没有答案