我是Jmeter的新手,我需要运行一个存在于远程Windows计算机上的可执行文件,我使用了OS采样器请求,但我不知道如何使其连接到远程计算机
答案 0 :(得分:0)
有2个选项:
使用PsExec,例如:
/c
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
$password = ConvertTo-SecureString -String ${password} -AsPlainText -Force; $credentials = new-object -typename System.Management.Automation.PSCredential -argumentlist "${username}",$password; Invoke-Command -Computer ${host} -cred $credentials -scriptBlock { /path/to/file.exe }
更多信息:How to Run External Commands and Programs Locally and Remotely from JMeter