How to run exe file remotely?

0

I have an exe file placed on a remote server. I need to invoke it from other server directly/using a batch file. When I invoke using batch file it runs and it shows in the Task manager of invoking server. Because the invoking server has security issues, the invoked exe doesn't call few APIs and it says 'Authentication error' and crashes. But I want the exe to be running on the remote server as it has all the facilities on it, but remotely invoked.

Cloud9

Posted 2016-05-03T07:37:51.560

Reputation: 1

3

Have a look at Sysinternals psexec.

– Axel Kemper – 2016-05-03T08:03:00.893

I want it to be done programmatically.. for example, using a batch file I want it to be kicked off remotely and make sure it runs on remote server and not on invoking server – Cloud9 – 2016-05-03T08:05:24.177

2A combination of batch syntax and psexec will enable you to do this – adampski – 2016-05-03T08:14:53.210

Answers

1

The PsExec tool may be a good idea, we may use it to exe file remotely.

Please refer to the link: PsExec v2.11

Tony998

Posted 2016-05-03T07:37:51.560

Reputation: 17

0

Create a service which runs the exe using sc on the command line of the remote server. Then you can use the Services Management Console to connect to the remote server and start your service.

sc create service_name binpath=C:\path\to\binary [option1] [option2] [optionN]

Jake Epstein

Posted 2016-05-03T07:37:51.560

Reputation: 1

That's nice but the OP is not asking to run his exe as a service – DavidPostill – 2016-05-03T10:10:18.263

0

Thanks for your inputs... The issue was that few API calls to an external website was failing because of network policies of our client over VPN connection. We did not find accurate solution to this and alternatively we solved the issue placing the exe on another server which allows calls to external webiste and modified the code accordingly and scheduled it to run as a Task in Task schedular.

Cloud9

Posted 2016-05-03T07:37:51.560

Reputation: 1