# Install Elastic Search using Powershell

**URL:** https://discuss.elastic.co/t/install-elastic-search-using-powershell/354697
**Category:** Elasticsearch
**Created:** [March 5, 2024, 6:40am UTC](https://discuss.elastic.co/t/install-elastic-search-using-powershell/354697 "2024-03-05T06:40:08Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![kottak01](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@kottak01](https://discuss.elastic.co/u/kottak01)
#### Post date: [March 5, 2024, 6:40am UTC](https://discuss.elastic.co/t/install-elastic-search-using-powershell/354697/1 "2024-03-05T06:40:08Z")

</div>

Hi, I'm currently using Powershell to install Elastic Search and Kibana as my command prompt is not working. I'm unable to install by running ".\elasticsearch.bat" on powershell. Can anyone assist with my issue?

---

<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: [March 5, 2024, 6:46am UTC](https://discuss.elastic.co/t/install-elastic-search-using-powershell/354697/2 "2024-03-05T06:46:52Z")

</div>

Hi @kottak01 Welcome to the community.

Hopefully you're following our official documents carefully line by line.

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

It is very important that you execute the commands from the correct directories.

If so, you'll notice the command is run from the home directory not inside the bin directory.

`.\bin\elasticsearch.bat`

Also, if you want help, you should always  
Show us exactly what command you executed and show us the result of the command. We can't help without that kind of information.

---

<div class="post-metadata">

### Author: ![kottak01](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@kottak01](https://discuss.elastic.co/u/kottak01)
#### Post date: [March 5, 2024, 7:36am UTC](https://discuss.elastic.co/t/install-elastic-search-using-powershell/354697/3 "2024-03-05T07:36:29Z")

</div>

Hi Stephen, thanks for the prompt reply. Nothing happens when i run the command in Powershell.

 ![elastic](https://us1.discourse-cdn.com/elastic/original/3X/9/f/9fe829e49a1e6172a95c36d5f2d06839dcef7571.png)

---

<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: [March 5, 2024, 2:23pm UTC](https://discuss.elastic.co/t/install-elastic-search-using-powershell/354697/4 "2024-03-05T14:23:22Z")

</div>

Please don't post images of text. Please take the time to cut and paste the text.

I would clean up the directory and unzip again and try again.

Go into the bin directory and show a directory listing

---

<div class="post-metadata">

### Author: ![kottak01](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@kottak01](https://discuss.elastic.co/u/kottak01)
#### Post date: [March 8, 2024, 3:04am UTC](https://discuss.elastic.co/t/install-elastic-search-using-powershell/354697/5 "2024-03-08T03:04:09Z")

</div>

Hi Stephen,  
I've deleted the directory and unzipped again.  
Here are the list of contents in the bin directory below

PS C:\Program Files\elasticsearch-8.12.2\bin\> ls

```
Directory: C:\Program Files\elasticsearch-8.12.2\bin

```

Mode LastWriteTime Length Name

* * *

-a---- 3/8/2024 10:52 AM 101 elasticsearch  
-a---- 3/8/2024 10:52 AM 376 elasticsearch-certgen  
-a---- 3/8/2024 10:52 AM 525 elasticsearch-certgen.bat  
-a---- 3/8/2024 10:52 AM 376 elasticsearch-certutil  
-a---- 3/8/2024 10:52 AM 525 elasticsearch-certutil.bat  
-a---- 3/8/2024 10:52 AM 674 elasticsearch-cli  
-a---- 3/8/2024 10:52 AM 765 elasticsearch-cli.bat  
-a---- 3/8/2024 10:52 AM 353 elasticsearch-create-enrollment-token  
-a---- 3/8/2024 10:52 AM 502 elasticsearch-create-enrollment-token.bat  
-a---- 3/8/2024 10:52 AM 352 elasticsearch-croneval  
-a---- 3/8/2024 10:52 AM 501 elasticsearch-croneval.bat  
-a---- 3/8/2024 10:52 AM 2371 elasticsearch-env  
-a---- 3/8/2024 10:52 AM 2595 elasticsearch-env-from-file  
-a---- 3/8/2024 10:52 AM 2540 elasticsearch-env.bat  
-a---- 3/8/2024 10:52 AM 84 elasticsearch-geoip  
-a---- 3/8/2024 10:52 AM 242 elasticsearch-geoip.bat  
-a---- 3/8/2024 10:52 AM 87 elasticsearch-keystore  
-a---- 3/8/2024 10:52 AM 245 elasticsearch-keystore.bat  
-a---- 3/8/2024 10:52 AM 55 elasticsearch-node  
-a---- 3/8/2024 10:52 AM 208 elasticsearch-node.bat  
-a---- 3/8/2024 10:52 AM 172 elasticsearch-plugin  
-a---- 3/8/2024 10:52 AM 336 elasticsearch-plugin.bat  
-a---- 3/8/2024 10:52 AM 376 elasticsearch-reconfigure-node  
-a---- 3/8/2024 10:52 AM 525 elasticsearch-reconfigure-node.bat  
-a---- 3/8/2024 10:52 AM 353 elasticsearch-reset-password  
-a---- 3/8/2024 10:52 AM 502 elasticsearch-reset-password.bat  
-a---- 3/8/2024 10:52 AM 353 elasticsearch-saml-metadata  
-a---- 3/8/2024 10:52 AM 502 elasticsearch-saml-metadata.bat  
-a---- 3/8/2024 10:52 AM 126600 elasticsearch-service-mgr.exe  
-a---- 3/8/2024 10:52 AM 353 elasticsearch-service-tokens  
-a---- 3/8/2024 10:52 AM 502 elasticsearch-service-tokens.bat  
-a---- 3/8/2024 10:52 AM 142984 elasticsearch-service-x64.exe  
-a---- 3/8/2024 10:52 AM 262 elasticsearch-service.bat  
-a---- 3/8/2024 10:52 AM 353 elasticsearch-setup-passwords  
-a---- 3/8/2024 10:52 AM 502 elasticsearch-setup-passwords.bat  
-a---- 3/8/2024 10:52 AM 55 elasticsearch-shard  
-a---- 3/8/2024 10:52 AM 208 elasticsearch-shard.bat  
-a---- 3/8/2024 10:52 AM 403 elasticsearch-sql-cli  
-a---- 3/8/2024 10:52 AM 3190250 elasticsearch-sql-cli-8.12.2.jar  
-a---- 3/8/2024 10:52 AM 610 elasticsearch-sql-cli.bat  
-a---- 3/8/2024 10:52 AM 353 elasticsearch-syskeygen  
-a---- 3/8/2024 10:52 AM 502 elasticsearch-syskeygen.bat  
-a---- 3/8/2024 10:52 AM 353 elasticsearch-users  
-a---- 3/8/2024 10:52 AM 502 elasticsearch-users.bat  
-a---- 3/8/2024 10:52 AM 244 elasticsearch.bat

---

<div class="post-metadata">

### Author: ![kottak01](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@kottak01](https://discuss.elastic.co/u/kottak01)
#### Post date: [March 9, 2024, 7:34am UTC](https://discuss.elastic.co/t/install-elastic-search-using-powershell/354697/6 "2024-03-09T07:34:48Z")

</div>

Hi Stephen, I've managed to install Elasticsearch using docker. Thanks for your help and patience. You can close this issue

---

<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: [March 9, 2024, 2:20pm UTC](https://discuss.elastic.co/t/install-elastic-search-using-powershell/354697/7 "2024-03-09T14:20:13Z")

</div>

Excellent.  
We don't close issues, they just age out.

---

<div class="post-metadata">

### Author: ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)
#### Post date: [March 9, 2024, 5:56pm UTC](https://discuss.elastic.co/t/install-elastic-search-using-powershell/354697/8 "2024-03-09T17:56:13Z")

</div>

You can install ES directly on [Windows](https://www.elastic.co/guide/en/elasticsearch/reference/current/zip-windows.html#windows-service), no need for Docker, just use different command:  
`.\elasticsearch-service.bat install Elasticsearch`  
If you want to change the service params:  
`.\elasticsearch-service.bat manager Elasticsearch`  
If you have permission issues, start PS with admin privileges.  
The .\elasticsearch.bat command is used to start ES as a process.

---

<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: [April 6, 2024, 5:56pm UTC](https://discuss.elastic.co/t/install-elastic-search-using-powershell/354697/9 "2024-04-06T17:56:16Z")

</div>

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