# Run on windows as service

**URL:** <https://discourse.nodered.org/t/run-on-windows-as-service/13569>\
**Category:** General\
**Created:** [22 July 2019 18:19 UTC](https://discourse.nodered.org/t/run-on-windows-as-service/13569 "2019-07-22T18:19:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mannirivera72](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mannirivera72](https://discourse.nodered.org/u/mannirivera72)\
**Post date:** [22 July 2019 18:19 UTC](https://discourse.nodered.org/t/run-on-windows-as-service/13569/1 "2019-07-22T18:19:02Z")

</div>

Hi,

I have created a node-red application that works together with an Opto 22 controller to monitor alarms. I installed the app on the computer used on the company where it is going to be working. But sometimes operators close the command prompt where the node-red is running and the app stops.

Is there a way to run node red as a windows service?. In that way as the computer is turned on, node red would be instantiated.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 July 2019 18:24 UTC](https://discourse.nodered.org/t/run-on-windows-as-service/13569/2 "2019-07-22T18:24:09Z")

</div>

Yes.

> <https://gist.github.com/dceejay/576b4847f0a17dc066db>

Running Node-RED as a service on Windows using NSSM ...

> [@Running Node Red in Windows](https://discourse.nodered.org/t/running-node-red-in-windows/3697):
>
> Hello guys I'm running the red node with windows and would like to know how to automatically start it. With the task manager it did not work well. I configured using NSSM and until it starts but when I changed, for example, the port it did not load. Anyone have any idea what might be happening?

Running Node Red in Windows - General - Node-RED Forum

> [@Running on windows server 2012 r2](https://discourse.nodered.org/t/running-on-windows-server-2012-r2/3586):
>
> Hi everyone, so as the title suggest, i'm running node-red on windows server. The server reboots it self every night at some fixed time, and when it "comes back" does not start the session, but it starts all the services except the node-red, so my question is how can i make the node-red start without having to initiate the session? Greatings. Andrés

Running on windows server 2012 r2 - General - Node-RED ...

[https://nodered.org/docs/faq/starting-node-red-on-boot](https://nodered.org/docs/faq/starting-node-red-on-boot)  
Starting Node-RED on boot : Node-RED
