# Elasticsearch Windows Security

**URL:** https://discuss.elastic.co/t/elasticsearch-windows-security/184865
**Category:** Elasticsearch
**Created:** [June 9, 2019, 5:07am UTC](https://discuss.elastic.co/t/elasticsearch-windows-security/184865 "2019-06-09T05:07:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Richard\_Phillips\_Roy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/richard_phillips_roy/32/46989_2.png) [@Richard\_Phillips\_Roy](https://discuss.elastic.co/u/Richard_Phillips_Roy)
#### Post date: [June 9, 2019, 5:07am UTC](https://discuss.elastic.co/t/elasticsearch-windows-security/184865/1 "2019-06-09T05:07:40Z")

</div>

How do I enable elasticsearch security features in windows i'm using elasticsearch-7.1.1.msi package ?

---

<div class="post-metadata">

### Author: ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)
#### Post date: [June 10, 2019, 7:48am UTC](https://discuss.elastic.co/t/elasticsearch-windows-security/184865/2 "2019-06-10T07:48:11Z")

</div>

I suspect you're referring to using Basic Authentication and TLS? Using the MSI the steps would be

1. Run through the installation, choosing Basic license

2. Open a new PowerShell terminal and navigate to the config directory, which by default will be `C:\ProgramData\Elastic\Elasticsearch\config`. The `ES_PATH_CONF` system environment variable will be set to this path. Open `elasticsearch.yml` within the config directory with administrator privileges and update `xpack.security.enabled` key to the following

3. Start Elasticsearch service. With PowerShell

4. Navigate to the installation directory, which by default will be `C:\Program Files\Elastic\Elasticsearch\7.1.1\`. The `ES_HOME` system environment variable will be set to the installation directory.

The Windows installer does not currently automate this process; we're currently discussing what the feature set of the installer should be going forward.

---

<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: [July 8, 2019, 7:48am UTC](https://discuss.elastic.co/t/elasticsearch-windows-security/184865/3 "2019-07-08T07:48:12Z")

</div>

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