我有一份工作需要在远程计算机上运行脚本。我是通过“执行 Windows 批处理命令”使用 psexec 来实现的:
C:\PsExec.exe \\computername -u username -p password -accepteula c:\xxx.exe
Run Code Online (Sandbox Code Playgroud)
当我运行作业时,出现以下错误:
c:\PsExec.exe is not recognized as an internal or external command
Run Code Online (Sandbox Code Playgroud)
**PsExec.exe位于c:\
有任何想法吗?
小智 7
首先在环境变量“PATH”中定义 psexec.exe 路径,或者将 psexec.exe 文件放在 C:\Windows\System32\ 中
并下载 Psexec.exe 文件 https://download.sysinternals.com/files/PSTools.zip
| 归档时间: |
|
| 查看次数: |
23189 次 |
| 最近记录: |