# Task scheduler seems to hinder adminAuth

**URL:** <https://discourse.nodered.org/t/task-scheduler-seems-to-hinder-adminauth/11406>\
**Category:** General\
**Created:** [22 May 2019 09:26 UTC](https://discourse.nodered.org/t/task-scheduler-seems-to-hinder-adminauth/11406 "2019-05-22T09:26:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Louise](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@Louise](https://discourse.nodered.org/u/Louise)\
**Post date:** [22 May 2019 09:26 UTC](https://discourse.nodered.org/t/task-scheduler-seems-to-hinder-adminauth/11406/1 "2019-05-22T09:26:36Z")

</div>

Hello,

I use adminAuth in my settings file to secure node-red with username and password and this works perfectly fine, until I use task scheduler to autoboot node-red. When I do this I do not have to login anymore to go to my editor.

Does anyone know what is causing this problem?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [22 May 2019 09:35 UTC](https://discourse.nodered.org/t/task-scheduler-seems-to-hinder-adminauth/11406/2 "2019-05-22T09:35:14Z")

</div>

Check the log output when running node-red using task scheduler to confirm it is using the right settings file. It is possible it is running as a different user, so is using a different userDir/settings file.

---

<div class="post-metadata">

**Author:** ![Louise](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@Louise](https://discourse.nodered.org/u/Louise)\
**Post date:** [22 May 2019 10:16 UTC](https://discourse.nodered.org/t/task-scheduler-seems-to-hinder-adminauth/11406/3 "2019-05-22T10:16:30Z")

</div>

Thank you! That solved my problem. For people with the same problem as me this is how I specified the settings file. In task manager go to the properties of the node red task, edit your "start a program" action and in add arguments enter -s path\to\your\settings\file
