# Unable to execute Kibana.bat on Windows 10

**URL:** <https://discuss.elastic.co/t/unable-to-execute-kibana-bat-on-windows-10/166808>\
**Category:** Kibana\
**Created:** [February 2, 2019, 6:37am UTC](https://discuss.elastic.co/t/unable-to-execute-kibana-bat-on-windows-10/166808 "2019-02-02T06:37:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppascual](https://avatars.discourse-cdn.com/v4/letter/p/6bbea6/32.png) [@ppascual](https://discuss.elastic.co/u/ppascual)\
**Post date:** [February 2, 2019, 6:37am UTC](https://discuss.elastic.co/t/unable-to-execute-kibana-bat-on-windows-10/166808/1 "2019-02-02T06:37:16Z")

</div>

After downloading and unzipping the zipped Kibana (6.6.0) file from elastic's website, I'm unable to execute the Kibana.bat file via command line. It produces these errors:

```
./kibana.bat: line 1: @echo: command not found
./kibana.bat: line 3: SETLOCAL: command not found
./kibana.bat: line 6: syntax error near unexpected token `('
./kibana.bat: line 6: `for %%I in ("%SCRIPT_DIR%..") do set DIR=%%~dpfI'

```

I tried searching the web, but was unsuccessful in finding a hint. Has anyone experienced this before?

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [February 3, 2019, 3:43am UTC](https://discuss.elastic.co/t/unable-to-execute-kibana-bat-on-windows-10/166808/2 "2019-02-03T03:43:35Z")

</div>

Are you using Command Prompt or PowerShell?  
Are you executing it from the root `bin\kibana.bat`?

[https://www.elastic.co/guide/en/kibana/current/start-stop.html#\_running\_kibana\_from\_the\_command\_line\_2](https://www.elastic.co/guide/en/kibana/current/start-stop.html#_running_kibana_from_the_command_line_2)

---

<div class="post-metadata">

**Author:** ![ppascual](https://avatars.discourse-cdn.com/v4/letter/p/6bbea6/32.png) [@ppascual](https://discuss.elastic.co/u/ppascual)\
**Post date:** [February 3, 2019, 4:59am UTC](https://discuss.elastic.co/t/unable-to-execute-kibana-bat-on-windows-10/166808/3 "2019-02-03T04:59:27Z")

</div>

I ran ./bin/kibana.bat via the Command Prompt which produced the errors that I've noted in my earlier post.

I tried via PowerShell (Administrative) and it now works. This was the same for Elasticsearch.

P.S. @tylersmalley Thank you for your response.

---

<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:** [March 3, 2019, 4:59am UTC](https://discuss.elastic.co/t/unable-to-execute-kibana-bat-on-windows-10/166808/4 "2019-03-03T04:59:29Z")

</div>

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