# X-pack-env.bat is missing?

**URL:** https://discuss.elastic.co/t/x-pack-env-bat-is-missing/98033
**Category:** Elasticsearch
**Created:** [August 23, 2017, 8:44am UTC](https://discuss.elastic.co/t/x-pack-env-bat-is-missing/98033 "2017-08-23T08:44:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![MartinBr](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@MartinBr](https://discuss.elastic.co/u/MartinBr)
#### Post date: [August 23, 2017, 8:44am UTC](https://discuss.elastic.co/t/x-pack-env-bat-is-missing/98033/1 "2017-08-23T08:44:37Z")

</div>

Hello,

While trying to setup an environment with Elastic 6.0.0 beta1.  
I am struggling with the new command setup-passwords that on my windows server seems to be missing a x-pack-env.bat file..

Am I doing something wrong or is this a bug ?

Here is the commandline I am trying  
E:...\Elastic\elasticsearch\bin\x-pack\>setup-passwords auto

And my error :  
'"E:...\Elastic\elasticsearch\bin\x-pack\x-pack-env.bat"' is not recognized as an internal or external command, operable program or batch file.

In my folder "E:...\Elastic\elasticsearch\bin\x-pack" there is no x-pack-env.bat and it seems to be the only file without .bat equivalent...

Thank you,  
Regards,

Martin

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [August 23, 2017, 6:02pm UTC](https://discuss.elastic.co/t/x-pack-env-bat-is-missing/98033/2 "2017-08-23T18:02:58Z")

</div>

First, I'm so terribly sorry that you have run into this. The expected file is indeed missing from the X-Pack distribution. This is a build issue on our side, and one that we take very seriously. We will work to address the breakdown that led to this.

You can fix this: create the missing file called `x-pack-env.bat` with the following content:

```auto
set ES_CLASSPATH=!ES_CLASSPATH!;!ES_HOME!/plugins/x-pack/*

```

Thank you so very much for downloading a pre-release of Elasticsearch, trying out X-Pack, and giving feedback here. We have a [Pioneer Program](https://www.elastic.co/blog/elastic-pioneer-program-6-0) for users like you. I will be adding you to the program. Again, thank you!

---

<div class="post-metadata">

### Author: ![MartinBr](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@MartinBr](https://discuss.elastic.co/u/MartinBr)
#### Post date: [August 24, 2017, 6:07am UTC](https://discuss.elastic.co/t/x-pack-env-bat-is-missing/98033/3 "2017-08-24T06:07:46Z")

</div>

Thank you very much, it worked perfectly.  
I will be more than happy to be part of your Pioneer Program.

Have a nice day.  
Regards

Martin

---

<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: [September 21, 2017, 6:07am UTC](https://discuss.elastic.co/t/x-pack-env-bat-is-missing/98033/4 "2017-09-21T06:07:52Z")

</div>

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