# Filebeat keystore automation

**URL:** https://discuss.elastic.co/t/filebeat-keystore-automation/300243
**Category:** Beats
**Tags:** filebeat
**Created:** [March 21, 2022, 7:10pm UTC](https://discuss.elastic.co/t/filebeat-keystore-automation/300243 "2022-03-21T19:10:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![craign30](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@craign30](https://discuss.elastic.co/u/craign30)
#### Post date: [March 21, 2022, 7:10pm UTC](https://discuss.elastic.co/t/filebeat-keystore-automation/300243/1 "2022-03-21T19:10:03Z")

</div>

Is it possible to automate the password entry when creating a filebeat keystore via PowerShell? I'm running the command '.\filebeat keystore add ES\_PWD', and when prompted to 'Enter value for ES\_PWD', I'd like this to automatically populate from a variable. I've tried running 'echo password | .\filebeat keystore add ES\_PWD', but received the error "could not read value from the input, error: The handle is invalid." Thank you

---

<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: [April 18, 2022, 9:10pm UTC](https://discuss.elastic.co/t/filebeat-keystore-automation/300243/2 "2022-04-18T21:10:20Z")

</div>

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