# Hide Node-RED console on Windows

**URL:** <https://discourse.nodered.org/t/hide-node-red-console-on-windows/76293>\
**Category:** General\
**Created:** [8 March 2023 12:35 UTC](https://discourse.nodered.org/t/hide-node-red-console-on-windows/76293 "2023-03-08T12:35:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![raullink](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@raullink](https://discourse.nodered.org/u/raullink)\
**Post date:** [8 March 2023 12:35 UTC](https://discourse.nodered.org/t/hide-node-red-console-on-windows/76293/1 "2023-03-08T12:35:06Z")

</div>

Hi everyone.  
The other topic has closed with no answer, and I am opening again because I got the same problem.

I use node-red in Linux with no problem. The auto-boot using the official install script works flawless.

But in Windows, when I start node-red, the cmd terminal opens and stay. This is a problem because I can miss click and the terminal stop the node-red execution or simple miss-close the cmd window.

Is there anyway to auto-boot in Windows without the terminal window staying open?

[Hide Node-RED console - General - Node-RED Forum (nodered.org)](https://discourse.nodered.org/t/hide-node-red-console/67934)

---

<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:** [8 March 2023 12:51 UTC](https://discourse.nodered.org/t/hide-node-red-console-on-windows/76293/2 "2023-03-08T12:51:24Z")

</div>

You could run it as a service & you wont see the console and it wont quit even if you log-off

Example: [Running Multiple Instances of Node-red using NSSM - #2 by Steve-Mcl](https://discourse.nodered.org/t/running-multiple-instances-of-node-red-using-nssm/57127/2)

Alternatively, you could fire up node-red via [FlowForge](https://flowforge.com/docs/install/) where you will get a whole suite of tools to help you fire up 1 or more instances at the click of a button

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [8 March 2023 12:51 UTC](https://discourse.nodered.org/t/hide-node-red-console-on-windows/76293/3 "2023-03-08T12:51:54Z")

</div>

How do you start NR on boot in windows?  
Did you follow **Run Node-RED on Startup** at the end of this page [Running on Windows : Node-RED](https://nodered.org/docs/getting-started/windows)

---

<div class="post-metadata">

**Author:** ![omrid](https://avatars.discourse-cdn.com/v4/letter/o/77aa72/32.png) [@omrid](https://discourse.nodered.org/u/omrid)\
**Post date:** [8 March 2023 13:31 UTC](https://discourse.nodered.org/t/hide-node-red-console-on-windows/76293/4 "2023-03-08T13:31:04Z")

</div>

I also use NSSM to run Node-red as a service, as @Steve-Mcl implied.  
However, I only do this on production environment. When developing or testing, I use a command-line console, which allows me to see errors, aborts etc.

---

<div class="post-metadata">

**Author:** ![raullink](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@raullink](https://discourse.nodered.org/u/raullink)\
**Post date:** [9 March 2023 10:27 UTC](https://discourse.nodered.org/t/hide-node-red-console-on-windows/76293/5 "2023-03-09T10:27:41Z")

</div>

Thanks everyone.

I was using the Windows Task Manager to run node-red. The terminal was showing everytime the system boots (minimized, but shows on taskbar).

I will try NSSM.

One more question:

From what I've been reading, using NSSM will still show terminal console, but setting the integer (REG\_DWORD) _HKLM\SYSTEM\CurrentControlSet\Services\<service\>\Parameters\AppNoConsole_ registry value to 1 will resolve this.

right?

---

<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:** [9 March 2023 10:33 UTC](https://discourse.nodered.org/t/hide-node-red-console-on-windows/76293/6 "2023-03-09T10:33:42Z")

</div>

> [@raullink](#):
>
> using NSSM will still show terminal console

Not if you use a dedicated account.

---

<div class="post-metadata">

**Author:** ![omrid](https://avatars.discourse-cdn.com/v4/letter/o/77aa72/32.png) [@omrid](https://discourse.nodered.org/u/omrid)\
**Post date:** [9 March 2023 15:51 UTC](https://discourse.nodered.org/t/hide-node-red-console-on-windows/76293/7 "2023-03-09T15:51:50Z")

</div>

Here is the batch file I created to install the service:

```auto
@echo off
echo Installing Node-red Service...
nssm install Node-Red-MM "C:\ProgramData\npm\node-red.cmd"
nssm set Node-Red-MM AppDirectory "C:\ProgramData\node-red"
nssm set Node-Red-MM AppParameters "-u C:\ProgramData\node-red > C:\ProgramData\node-red\node-red.log"
nssm set Node-Red-MM Description "Node-red server for MM"
nssm start Node-Red-MM

```

You can use additional nssm commands - stop, remove etc.

---

<div class="post-metadata">

**Author:** ![raullink](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@raullink](https://discourse.nodered.org/u/raullink)\
**Post date:** [13 March 2023 16:31 UTC](https://discourse.nodered.org/t/hide-node-red-console-on-windows/76293/8 "2023-03-13T16:31:27Z")

</div>

Thanks everyone for the help.

Unfortunately it didn't work for me. I believe it is limitations by Windows Policy managed by network administrators (it's not me).

I tried to use the tutorial present in NSSM readme file.

The service cant even start because there is a "logon inssue".

Tried to use the **omrid**'s batch file as example to install, but got the same error.

But I got it another way.

I created a .vbs file with this line:

`WScript.CreateObject("Wscript.Shell").Run "C:/Users/ **username** /AppData/Roaming/npm/node-red.cmd",0,True`

I moved this .vbs file to Windows Startup folder.

It works.

---

<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:** [27 March 2023 16:32 UTC](https://discourse.nodered.org/t/hide-node-red-console-on-windows/76293/9 "2023-03-27T16:32:10Z")

</div>

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