# adminAuth not working windows 10

**URL:** https://discourse.nodered.org/t/adminauth-not-working-windows-10/52521
**Category:** General
**Created:** [21 October 2021 17:15 UTC](https://discourse.nodered.org/t/adminauth-not-working-windows-10/52521 "2021-10-21T17:15:03Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [21 October 2021 19:33 UTC](https://discourse.nodered.org/t/adminauth-not-working-windows-10/52521/2 "2021-10-21T19:33:27Z")

</div>

> [@Yonny24](#):
>
> Nodered service was created and runs as the local system account

Unless you tell the service to run node-red with command line parameters, it will NOT be using that folder.

You have two choices...

1. create account "node-red" and run the service under that account - you will see that it creates `C:\Users\node-red\.node-red\settings.js` on first run
2. add command line parameters to tell the service to use the folder `C:\Users\jon\.node-red`

The docs tell you what the command line parameters are (or run node-red --help)...

```bash
C:\Users\xxxxx>node-red --help
Node-RED v2.0.5
Usage: node-red [-v] [-?] [--settings settings.js] [--userDir DIR]
                [--port PORT] [--title TITLE] [--safe] [flows.json]
       node-red admin <command> [args] [-?] [--userDir DIR] [--json]

Options:
  -p, --port PORT port to listen on
  -s, --settings FILE use specified settings file
      --title TITLE process window title
  -u, --userDir DIR use specified user directory
  -v, --verbose enable verbose output
      --safe enable safe mode
  -D, --define X=Y overwrite value in settings file
  -?, --help show this help
  admin <command> run an admin command

Documentation can be found at http://nodered.org

```

e.g. set your service to run `node-red -u C:\Users\jon\.node-red`

---

_[View the full topic](https://discourse.nodered.org/t/adminauth-not-working-windows-10/52521)._
