# Can't Create Enrollment Token

**URL:** https://discuss.elastic.co/t/cant-create-enrollment-token/348460
**Category:** Elasticsearch
**Created:** [December 1, 2023, 7:21pm UTC](https://discuss.elastic.co/t/cant-create-enrollment-token/348460 "2023-12-01T19:21:31Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Bethanie\_Tipton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bethanie_tipton/32/128441_2.png) [@Bethanie\_Tipton](https://discuss.elastic.co/u/Bethanie_Tipton)
#### Post date: [December 1, 2023, 7:21pm UTC](https://discuss.elastic.co/t/cant-create-enrollment-token/348460/1 "2023-12-01T19:21:31Z")

</div>

When I try to open elasticsearch-create-enrollment-token, it crashes. I can't do anything with it; I click it, it pops up on my screen for half a second, and then closes.

---

<div class="post-metadata">

### Author: ![Bethanie\_Tipton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bethanie_tipton/32/128441_2.png) [@Bethanie\_Tipton](https://discuss.elastic.co/u/Bethanie_Tipton)
#### Post date: [December 6, 2023, 5:57pm UTC](https://discuss.elastic.co/t/cant-create-enrollment-token/348460/2 "2023-12-06T17:57:20Z")

</div>

Someone please help me. I have waited nearly a week for a response. I'm taking this course to get a job so I can pay for my university tuition, which starts in January. I need some assistance ASAP.

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [December 6, 2023, 6:10pm UTC](https://discuss.elastic.co/t/cant-create-enrollment-token/348460/3 "2023-12-06T18:10:21Z")

</div>

Hi @Bethanie_Tipton, Welcome to the community, sorry for the delayed response sooo many questions on the site right now! 🙂

What OS are you on... Windows?

The executables are not GUI apps (i.e you cannot click on them): they are command line utilities you will need to use Powershell.

Are you following our documentation?

---

<div class="post-metadata">

### Author: ![Bethanie\_Tipton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bethanie_tipton/32/128441_2.png) [@Bethanie\_Tipton](https://discuss.elastic.co/u/Bethanie_Tipton)
#### Post date: [December 6, 2023, 7:57pm UTC](https://discuss.elastic.co/t/cant-create-enrollment-token/348460/4 "2023-12-06T19:57:25Z")

</div>

Yes, I am on Windows.

Oh, I did not realize. I was trying to use Command Prompt.

However, after much frustration, I still cannot get Elasticsearch to work. When I run ls it doesn't show up in my directory, nor does Kibana. When I try bin\elasticsearch.bat, PowerShell doesn't recognize it and says the module 'bin' could not be loaded. When I try cd elasticsearch/ it says it cannot find the path because it doesn't exist.

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [December 6, 2023, 8:06pm UTC](https://discuss.elastic.co/t/cant-create-enrollment-token/348460/5 "2023-12-06T20:06:48Z")

</div>

Hi @Bethanie_Tipton

Are you following official documentation?

Here is the installation for windows

> **[Install Elasticsearch with .zip on Windows | Elasticsearch Guide \[8.11\] |...](https://www.elastic.co/guide/en/elasticsearch/reference/current/zip-windows.html)**

If you want help you will need show us how you installed and the what commands you are running and the results

Do you have access to docker? That may be easier to get it all running?

---

<div class="post-metadata">

### Author: ![Bethanie\_Tipton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bethanie_tipton/32/128441_2.png) [@Bethanie\_Tipton](https://discuss.elastic.co/u/Bethanie_Tipton)
#### Post date: [December 6, 2023, 8:36pm UTC](https://discuss.elastic.co/t/cant-create-enrollment-token/348460/6 "2023-12-06T20:36:43Z")

</div>

I installed Elasticsearch first, then Kibana. I unzipped Elastic and Kibana and they are in Program Files. I opened config/kibana.yml and set `elasticsearch.url` to point at my Elasticsearch instance and uncommented.

If I run bin\elasticsearch.bat in PowerShell:

```auto
bin\elasticsearch.bat : The module 'bin' could not be loaded. For more information, run 'Import-Module bin'.
At line:1 char:1
+ bin\elasticsearch.bat
+ ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (bin\elasticsearch.bat:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CouldNotAutoLoadModule

```

I don't know enough about Docker to get it to work unfortunately.

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [December 6, 2023, 9:06pm UTC](https://discuss.elastic.co/t/cant-create-enrollment-token/348460/7 "2023-12-06T21:06:53Z")

</div>

So you are following these directions?

> **[Install Elasticsearch with .zip on Windows | Elasticsearch Guide \[8.11\] |...](https://www.elastic.co/guide/en/elasticsearch/reference/current/zip-windows.html)**

notice the command is

`.\bin\elasticsearch.bat` with a `.\`  
`^^`

the `.\` says relative to the directory I am in

And you need to be in the correct directory

> [@Bethanie\_Tipton](#):
>
> I don't know enough about Docker to get it to work unfortunately.

Well you install docker-desktop and then we give you a docker-compose.yml and you run 1 command and it works 🙂

but we can try that another time.

---

<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 3, 2024, 9:06pm UTC](https://discuss.elastic.co/t/cant-create-enrollment-token/348460/8 "2024-01-03T21:06:55Z")

</div>

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