# Windows Service & Password-protected Keystore

**URL:** <https://discuss.elastic.co/t/windows-service-password-protected-keystore/248734>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [September 15, 2020, 8:13pm UTC](https://discuss.elastic.co/t/windows-service-password-protected-keystore/248734 "2020-09-15T20:13:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Coinology](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Coinology](https://discuss.elastic.co/u/Coinology)\
**Post date:** [September 15, 2020, 8:13pm UTC](https://discuss.elastic.co/t/windows-service-password-protected-keystore/248734/1 "2020-09-15T20:13:59Z")

</div>

All,

I see that the Elasticsearch keystore doc [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/elasticsearch-keystore.html) advises that, if a password is used to protect the keystore, that password must be provided each time upon startup. Is there a way to provide this automatically for Elasticsearch installed as a service on Windows? For example, Logstash has the capability to set an environment variable. Is there a similar option for Elasticsearch or the password must be entered manually each time?

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 13, 2020, 8:14pm UTC](https://discuss.elastic.co/t/windows-service-password-protected-keystore/248734/2 "2020-10-13T20:14:11Z")

</div>

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