Forum Discussion
Trying to run an .exe (with a parameter) on a remote machine and nothing is working....
Hi all,
I hope this is the proper forum for this question. As part of our build, we compile a database restore app and push that out to a remote/test server. It configures a whole bunch of stuff for automated testing and works fine when called directly with a UI, and run from a PowerShell script with a -wait parameter.
I've tried using a PowerShell on a Remote Machine task, coding a script block executed in a different Powershell script, etc and nothing is working. The log from the app seems to indicate that it just stops after logging that is it loading the config file, which is in place and has the proper information within.
The log doesn't show that any error occurred, but it always seems to be stopping in the same spot. Every way we've tried to execute it outside of the build works fine.
We would like our build to execute this .exe and wait for it to complete. The .exe does launch and technically it may be waiting for exit and moves on after the utility drops out. We cannot fathom why this is not working from the build. Do these PowerShell tasks just launch whatever the target is and move on immediately?
Any questions are welcomed as well as any possible solutions. We are stumped.