# Exec node not opening exe file

**URL:** https://discourse.nodered.org/t/exec-node-not-opening-exe-file/48781
**Category:** General
**Created:** [22 July 2021 15:05 UTC](https://discourse.nodered.org/t/exec-node-not-opening-exe-file/48781 "2021-07-22T15:05:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![incos](https://avatars.discourse-cdn.com/v4/letter/i/b5ac83/32.png) [@incos](https://discourse.nodered.org/u/incos)
#### Post date: [22 July 2021 15:05 UTC](https://discourse.nodered.org/t/exec-node-not-opening-exe-file/48781/1 "2021-07-22T15:05:49Z")

</div>

Hi,

on windows if I fire the command "C:\Program Files (x86)\Magnetek\IMPULSE Link 5\IMPULSELink5.exe" from the cmd terminal this program opens.

i want to run the same command from an exec node but i cant get it to open the program.  
i get a pid has started but the program wont open up.

is there something i am missing in the exec node?  
"C:\Program Files (x86)\Magnetek\IMPULSE Link 5\IMPULSELink5.exe" is all i put and triggered it from an inject node to test.

---

<div class="post-metadata">

### Author: ![incos](https://avatars.discourse-cdn.com/v4/letter/i/b5ac83/32.png) [@incos](https://discourse.nodered.org/u/incos)
#### Post date: [22 July 2021 15:21 UTC](https://discourse.nodered.org/t/exec-node-not-opening-exe-file/48781/2 "2021-07-22T15:21:08Z")

</div>

I also have node red started with the task scheduler.

i stopped the process and started node red in a new instance and from there i was able to open the app.

i also noticed that the app is starting from my first node red issue but it is starting as a background process. this is why i thought it wasn't opening.

any ideas on how to make everything open up correctly using the task scheduler to run node red on boot for windows?

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [22 July 2021 16:45 UTC](https://discourse.nodered.org/t/exec-node-not-opening-exe-file/48781/3 "2021-07-22T16:45:44Z")

</div>

Hi @incos - this is happening probably because you have started Node-RED from the task scheduler using the SYSTEM user rather than your actual user id.

You should either change the startup or adjust the exec to use `runas` and run as a different user (your logged in user).

[Windows: How to Run with Alternate Credentials and Open Elevated Command Prompts - TechNet Articles - United States (English) - TechNet Wiki (microsoft.com)](https://social.technet.microsoft.com/wiki/contents/articles/1410.windows-how-to-run-with-alternate-credentials-and-open-elevated-command-prompts.aspx)

---

<div class="post-metadata">

### Author: ![incos](https://avatars.discourse-cdn.com/v4/letter/i/b5ac83/32.png) [@incos](https://discourse.nodered.org/u/incos)
#### Post date: [22 July 2021 17:39 UTC](https://discourse.nodered.org/t/exec-node-not-opening-exe-file/48781/4 "2021-07-22T17:39:28Z")

</div>

great thanks for the help. i will look into this and try to run it as the user

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [20 September 2021 17:39 UTC](https://discourse.nodered.org/t/exec-node-not-opening-exe-file/48781/5 "2021-09-20T17:39:51Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
