# Move config folder to another location on Window (v8.6.0)

**URL:** <https://discuss.elastic.co/t/move-config-folder-to-another-location-on-window-v8-6-0/324446>\
**Category:** Elasticsearch\
**Created:** [February 1, 2023, 2:53pm UTC](https://discuss.elastic.co/t/move-config-folder-to-another-location-on-window-v8-6-0/324446 "2023-02-01T14:53:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ykara84](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ykara84/32/106391_2.png) [@ykara84](https://discuss.elastic.co/u/ykara84)\
**Post date:** [February 1, 2023, 2:53pm UTC](https://discuss.elastic.co/t/move-config-folder-to-another-location-on-window-v8-6-0/324446/1 "2023-02-01T14:53:03Z")

</div>

Hi, I have ES 8.6.0 on Windows (single-node). I am looking to move the config folder to another location. I have I have added two new environment variables:

> C:\Windows\system32\>echo %ES\_HOME%  
> E:\elk\elasticsearch\8.6.0
> 
> C:\Windows\system32\>echo %ES\_PATH\_CONF%  
> E:\elk\elasticsearch\config

When service elasticsearch-service-x64 tries to start it fails with error in log:

> java.io.UncheckedIOException: java.nio.file.NoSuchFileException: E:\elk\elasticsearch\8.6.0\config\jvm.options

As you can see it is still looking for _jvm.options_ in the original location.

When I try to start using _elasticsearch.bat_ I get error in my-cluster.log:

> ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
> 
> [2023-02-01T14:43:21,789][INFO][o.e.b.BootstrapChecks] [xxxxxx] explicitly enforcing bootstrap checks bootstrap check failure [1] of [1]: memory locking requested for elasticsearch process but memory is not locked

Are there any instructions anywhere which shows to correctly move the config folder to another location in Windows? looks like it needs more than just environment variables?

---

<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 1, 2023, 2:53pm UTC](https://discuss.elastic.co/t/move-config-folder-to-another-location-on-window-v8-6-0/324446/2 "2023-03-01T14:53:49Z")

</div>

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