# \[Solved\] Running as a service on windows

**URL:** <https://discourse.nodered.org/t/solved-running-as-a-service-on-windows/22683>\
**Category:** General\
**Created:** [6 March 2020 02:51 UTC](https://discourse.nodered.org/t/solved-running-as-a-service-on-windows/22683 "2020-03-06T02:51:11Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dathor](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dathor](https://discourse.nodered.org/u/dathor)\
**Post date:** [6 March 2020 05:25 UTC](https://discourse.nodered.org/t/solved-running-as-a-service-on-windows/22683/3 "2020-03-06T05:25:12Z")

</div>

I also tried using the following method which worked as provided by @dceejay

[https://gist.github.com/dceejay/576b4847f0a17dc066db](https://gist.github.com/dceejay/576b4847f0a17dc066db)

````auto
nssm install Node-RED "c:\Users\\"%USERNAME%"\AppData\Roaming\npm\node-red.cmd"
nssm set Node-RED AppDirectory "c:\Users\\"%USERNAME%"\.node-red"
nssm set Node-RED AppParameters "-u c:\Users\\"%USERNAME%"\.node-red > c:\temp\node-red.log"
nssm set Node-RED Description "A wiring tool for the Internet of Things"```
````

---

_[View the full topic](https://discourse.nodered.org/t/solved-running-as-a-service-on-windows/22683)._
