# Setup password for Elasticsearch in windows cmd

**URL:** https://discuss.elastic.co/t/setup-password-for-elasticsearch-in-windows-cmd/135577
**Category:** Elasticsearch
**Created:** [June 12, 2018, 5:52pm UTC](https://discuss.elastic.co/t/setup-password-for-elasticsearch-in-windows-cmd/135577 "2018-06-12T17:52:17Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![sravan\_gottipaty](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@sravan\_gottipaty](https://discuss.elastic.co/u/sravan_gottipaty)
#### Post date: [June 12, 2018, 5:52pm UTC](https://discuss.elastic.co/t/setup-password-for-elasticsearch-in-windows-cmd/135577/1 "2018-06-12T17:52:17Z")

</div>

Elasticsearch and kibana were running perfectly before but when I installed x-pack it started asking for the password I looked at the forums but they all were in the linux environment. I tried typing in the default username:elastic and password:changeme which dint work. Can someone please help me out with it?

---

<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: [June 18, 2018, 1:50am UTC](https://discuss.elastic.co/t/setup-password-for-elasticsearch-in-windows-cmd/135577/2 "2018-06-18T01:50:05Z")

</div>

- What version of Elasticsearch are you running?
- Did you read and follow the [setup instructions](https://www.elastic.co/guide/en/elastic-stack-overview/6.3/xpack-setup.html) for X-Pack?
- What features of X-Pack are you planning to use? It is possible to disable security, if you don't plan to use it.

---

<div class="post-metadata">

### Author: ![sravan\_gottipaty](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@sravan\_gottipaty](https://discuss.elastic.co/u/sravan_gottipaty)
#### Post date: [June 19, 2018, 2:56pm UTC](https://discuss.elastic.co/t/setup-password-for-elasticsearch-in-windows-cmd/135577/3 "2018-06-19T14:56:59Z")

</div>

I am using ES 6.2

Yes I did read the instructions most of the forms I read were based on linux environment whereas I installed ES on windows

I wanted to use Machine Learning and SQL

Please help me how to disable security in windows.

Thanks.

---

<div class="post-metadata">

### Author: ![richcollier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richcollier/32/115035_2.png) [@richcollier](https://discuss.elastic.co/u/richcollier)
#### Post date: [June 20, 2018, 1:18am UTC](https://discuss.elastic.co/t/setup-password-for-elasticsearch-in-windows-cmd/135577/4 "2018-06-20T01:18:09Z")

</div>

set:

```auto
xpack.security.enabled: false

```

in your `elasticsearch.yml` file which is in the `config` directory

save and restart your cluster. For more information, see: [https://www.elastic.co/guide/en/elasticsearch/reference/6.2/security-settings.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/security-settings.html)

---

<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: [June 25, 2018, 1:43am UTC](https://discuss.elastic.co/t/setup-password-for-elasticsearch-in-windows-cmd/135577/5 "2018-06-25T01:43:18Z")

</div>

> [@sravan\_gottipaty](#):
>
> I am using ES 6.2  
> ...  
> I wanted to use Machine Learning and SQL

SQL is not available on 6.2; you need to upgrade to 6.3

---

<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: [June 25, 2018, 1:45am UTC](https://discuss.elastic.co/t/setup-password-for-elasticsearch-in-windows-cmd/135577/6 "2018-06-25T01:45:53Z")

</div>

> [@sravan\_gottipaty](#):
>
> Yes I did read the instructions

The "[Installing X-Pack](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/installing-xpack-es.html)" instructions for 6.2 explain how to setup passwords as part of step 7.

---

<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: [July 23, 2018, 1:45am UTC](https://discuss.elastic.co/t/setup-password-for-elasticsearch-in-windows-cmd/135577/7 "2018-07-23T01:45:53Z")

</div>

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