Having issue while executing batch file with Ranorex
Posted: Tue May 24, 2016 3:43 pm
Hi,
I have created a batch file which have command to execute power shell script on remote machine using PSExec. If I execute this batch file as standalone it works fine, started powershell script on remote machine and do its job.
My interest is to run this file using Ranorex. But when I try to start it via Ranorex as Run Application action item, it opened command prompt but gives an error that PSExec is not recognized as an internal or external command.
Here is the command I am using to run powershell script on remote machine using PSExec
psexec -i -d \\<machineName> -u <userNaem> -p <Password> powershell -noexit "C:\Users\Administrator\Desktop\AutomatedTestData\Scripts\RevertWin7Snapshot.ps1"
Any help would be highly appreciated..........?
Thanks
I have created a batch file which have command to execute power shell script on remote machine using PSExec. If I execute this batch file as standalone it works fine, started powershell script on remote machine and do its job.
My interest is to run this file using Ranorex. But when I try to start it via Ranorex as Run Application action item, it opened command prompt but gives an error that PSExec is not recognized as an internal or external command.
Here is the command I am using to run powershell script on remote machine using PSExec
psexec -i -d \\<machineName> -u <userNaem> -p <Password> powershell -noexit "C:\Users\Administrator\Desktop\AutomatedTestData\Scripts\RevertWin7Snapshot.ps1"
Any help would be highly appreciated..........?
Thanks