System Center Service Management Automation (SMA) PowerShell Runbook Invoke-NcSsh:系统找不到指定的文件

System Center Service Management Automation (SMA) PowerShell Runbook Invoke-NcSsh : The system cannot find the file specified

尝试 运行 System Center Service Management Automation (SMA) 中的 powershell 脚本从 NetApp 查询一些信息。使用了以下命令:

Invoke-NcSsh -Command "node run -node $Node sysconfig -a"

我能够直接在 运行book workers(NetApp_PowerShell_Toolkit_9.6.0 和 putty-64bit-0.73 安装)的 PowerShell ISE 中成功地 运行 命令。但是当我 运行 将 运行 书作为 SMA 作业时,它失败并出现以下错误:

Invoke-NcSsh : The system cannot find the file specified + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Invoke-NcSsh], Win32Exception + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,DataONTAP.C.PowerShell.SDK.Cmdlets.Toolkit.Ssh.InvokeNcSsh

procmon.exe 显示 Orchestrator.Sandbox.exe 正在以下文件夹中寻找 plink.exe(来自用于发送 ssh 命令的 putty):

解决方法: 将 plink.exe 复制到其中一个文件夹。