Identifications with PSExec
Posted: Wed Apr 12, 2017 12:56 am
I'm attempting to use PSExec to execute my automated tests remotely. I use it to launch a powershell script that has the ranorex command line execution. The issue is that it won't identify anything once the app under test launches. When I use studio or run the powershell script locally on the remote machine it runs fine. Any suggestions would be appreciated.
Here's the PSExec command:
And here's the content of smoketest.ps1:
Here's the PSExec command:
Code: Select all
c:\pstools\psexec \\[remote machine] -u [user] -p [password] -h -w "c:\test\exe\dir" -i 1 cmd /c "powershell c:\test\exe\dir\smoketest.ps1" -accepteula
Code: Select all
# Run Smoke Test
$testRoot = "c:\test\exe\dir"
Start-Process -FilePath "$testRoot\SmokeTest\SmokeTest\bin\Debug\SmokeTest.exe" -ArgumentList "/zr /rf:$testRoot/TestResults/SmokeTest." -WorkingDirectory "$testRoot\SmokeTest\SmokeTest\bin\Debug" -Wait -Verb runAs