# How to set build-in user password on windows?

**URL:** https://discuss.elastic.co/t/how-to-set-build-in-user-password-on-windows/111812
**Category:** Elasticsearch
**Created:** [December 14, 2017, 4:38pm UTC](https://discuss.elastic.co/t/how-to-set-build-in-user-password-on-windows/111812 "2017-12-14T16:38:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Lynnic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lynnic/32/27427_2.png) [@Lynnic](https://discuss.elastic.co/u/Lynnic)
#### Post date: [December 14, 2017, 4:38pm UTC](https://discuss.elastic.co/t/how-to-set-build-in-user-password-on-windows/111812/1 "2017-12-14T16:38:56Z")

</div>

I just installed x-pack in Elasticsearch on windows following the document  
[https://www.elastic.co/guide/en/x-pack/6.0/setting-up-authentication.html#bootstrap-elastic-passwords](https://www.elastic.co/guide/en/x-pack/6.0/setting-up-authentication.html#bootstrap-elastic-passwords)  
Now I want to set the password when login es, the doc says that just run

```auto
bin/x-pack/setup-passwords interactive

```

This command seems cannot run in CMD at all  
how could I achive the goal to change password?  
By the way, does it have a default accout/password when x-pack was installed?  
I cannot find it in docs  
Thanks

---

<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: [December 15, 2017, 3:46am UTC](https://discuss.elastic.co/t/how-to-set-build-in-user-password-on-windows/111812/2 "2017-12-15T03:46:56Z")

</div>

You can use `bin/x-pack/setup-password.bat` on windows.

Did you try that?  
If it's not working, please post an error message.

---

<div class="post-metadata">

### Author: ![Lynnic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lynnic/32/27427_2.png) [@Lynnic](https://discuss.elastic.co/u/Lynnic)
#### Post date: [December 16, 2017, 3:04pm UTC](https://discuss.elastic.co/t/how-to-set-build-in-user-password-on-windows/111812/3 "2017-12-16T15:04:46Z")

</div>

> [@TimV](#):
>
> bin/x-pack/setup-password.bat

Thanks for replying, Tim  
Yes,actually I have tried this command you metioned, it print **Not an internal or external command**  
Also I have checked the bin/x-pack directory, there is no such bat file in 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: [December 17, 2017, 9:26pm UTC](https://discuss.elastic.co/t/how-to-set-build-in-user-password-on-windows/111812/4 "2017-12-17T21:26:29Z")

</div>

My apologies, that should be

```
bin/x-pack/setup-passwords.bat

```

You definitely should have that command.

---

<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: [January 14, 2018, 9:26pm UTC](https://discuss.elastic.co/t/how-to-set-build-in-user-password-on-windows/111812/5 "2018-01-14T21:26:34Z")

</div>

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