# How to access Elasticsearch auto-generated password on windows

**URL:** https://discuss.elastic.co/t/how-to-access-elasticsearch-auto-generated-password-on-windows/263544
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [February 8, 2021, 5:51am UTC](https://discuss.elastic.co/t/how-to-access-elasticsearch-auto-generated-password-on-windows/263544 "2021-02-08T05:51:20Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Sandeep\_Raju](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sandeep\_Raju](https://discuss.elastic.co/u/Sandeep_Raju)
#### Post date: [February 8, 2021, 5:51am UTC](https://discuss.elastic.co/t/how-to-access-elasticsearch-auto-generated-password-on-windows/263544/1 "2021-02-08T05:51:20Z")

</div>

Hi all,

When i'm running elasticsearch on my UBUNTU system, i'm able to access auto generated passwords of my security enabled elasticsearch.

How can i access auto generated passwords of my elastic instance such as apm\_system,kibana,logstash\_system,beats\_system,remote\_monitoring\_user,user\_elastic on **WINDOWS** system?

Regards

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [February 8, 2021, 6:56am UTC](https://discuss.elastic.co/t/how-to-access-elasticsearch-auto-generated-password-on-windows/263544/2 "2021-02-08T06:56:56Z")

</div>

If you installed using the Zip archive, then the setup process is the same - there's a utility called `elasticsearch-setup-passwords.bat` that you can run.

If you installed using the MSI installer, then passwords are set during the installation process instead.

---

<div class="post-metadata">

### Author: ![Sandeep\_Raju](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sandeep\_Raju](https://discuss.elastic.co/u/Sandeep_Raju)
#### Post date: [February 8, 2021, 8:00am UTC](https://discuss.elastic.co/t/how-to-access-elasticsearch-auto-generated-password-on-windows/263544/3 "2021-02-08T08:00:07Z")

</div>

Thanks , but i want to know already generated passwords.

Is there any terminal command which i can use to access already generated passwords during the installation process on Windows?

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [February 8, 2021, 9:19am UTC](https://discuss.elastic.co/t/how-to-access-elasticsearch-auto-generated-password-on-windows/263544/4 "2021-02-08T09:19:26Z")

</div>

It is not possible to access the passwords after they are generated.  
The only option is to use the change password API to reset them.

---

<div class="post-metadata">

### Author: ![Sandeep\_Raju](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sandeep\_Raju](https://discuss.elastic.co/u/Sandeep_Raju)
#### Post date: [February 8, 2021, 9:28am UTC](https://discuss.elastic.co/t/how-to-access-elasticsearch-auto-generated-password-on-windows/263544/5 "2021-02-08T09:28:16Z")

</div>

Hi,

In Ubuntu,

I'm able to use command:  
**cat /opt/.elscreds**

Command gives below output:

Initiating the setup of passwords for reserved users elastic,apm\_system,kibana,logstash\_system,beats\_system,remote\_monitoring\_user.  
The passwords will be randomly generated and printed to the console.

Changed password for user apm\_system  
PASSWORD apm\_system = \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

Changed password for user kibana  
PASSWORD kibana = \*\*\*\*\*\*\*\*\*\*\*\*\*

Changed password for user logstash\_system  
PASSWORD logstash\_system = \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

Changed password for user beats\_system  
PASSWORD beats\_system = \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

Changed password for user remote\_monitoring\_user  
PASSWORD remote\_monitoring\_user = \*\*\*\*\*\*\*\*\*\*\*\*\*\*

Changed password for user elastic  
PASSWORD elastic = \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

Shows list as above.  
I'm looking for a command similar in windows.

---

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [February 9, 2021, 2:00am UTC](https://discuss.elastic.co/t/how-to-access-elasticsearch-auto-generated-password-on-windows/263544/6 "2021-02-09T02:00:03Z")

</div>

On your ubuntu system, someone manually created that file to record the passwords that were generated when they ran the setup passwords process.

They may have done that on your Windows system as well, but in either case it was a manual step someone within your organisation performed, not something Elasticsearch does.

---

<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: [March 9, 2021, 2:00am UTC](https://discuss.elastic.co/t/how-to-access-elasticsearch-auto-generated-password-on-windows/263544/7 "2021-03-09T02:00:09Z")

</div>

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