# How do I run an .exe file remotely?

**URL:** https://www.finalbuilder.com/forums/t/how-do-i-run-an-exe-file-remotely/2557
**Category:** Discussion
**Created:** [July 14, 2017, 8:09am UTC](https://www.finalbuilder.com/forums/t/how-do-i-run-an-exe-file-remotely/2557 "2017-07-14T08:09:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [July 14, 2017, 8:09am UTC](https://www.finalbuilder.com/forums/t/how-do-i-run-an-exe-file-remotely/2557/1 "2017-07-14T08:09:58Z")

</div>

I need to run a .exe file remotely, and I need to be able to choose options after the .exe file runs.  
  
Is there a way for me to make it run in the foreground, so I can send keys to it?  
  
If not, is there a way to send keys to a process that is running in the background? I’ve tried&nbsp;WMI Run Process, PsExec, and Execute Program, and I can’t get any of them to work.

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [July 17, 2017, 1:25am UTC](https://www.finalbuilder.com/forums/t/how-do-i-run-an-exe-file-remotely/2557/2 "2017-07-17T01:25:07Z")

</div>

Hi whatever81,   
  
 It sounds like you want to run up a GUI application and then send keystrokes from the current user.   
  
 PsExec is the best application for running applications remotely. However sending keystrokes to a GUI application depends on how well it support the ui-automation framework.   
  
 [https://docs.microsoft.com/en-us/dotnet/framework/ui-automation/](https://docs.microsoft.com/en-us/dotnet/framework/ui-automation/)   
  
 Once the application is up and running in GUI mode, you could make another executable which is also run by PsExec to use this framework.   
  
 FinalBuilder and Automise have very basic keystroke calling functionality, which does not cover running applications remotely. You might be able to start a FinalBuilder script remotely with a command line that sends the keystrokes. It will very much depend on the application your attempting to interact as well.
