# Elastic-Agent Install Creating a ton of folders

**URL:** <https://discuss.elastic.co/t/elastic-agent-install-creating-a-ton-of-folders/257421>\
**Category:** Endpoint Security\
**Tags:** docker, elastic-agent\
**Created:** [December 2, 2020, 9:17pm UTC](https://discuss.elastic.co/t/elastic-agent-install-creating-a-ton-of-folders/257421 "2020-12-02T21:17:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cwobuzz](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@cwobuzz](https://discuss.elastic.co/u/cwobuzz)\
**Post date:** [December 2, 2020, 9:17pm UTC](https://discuss.elastic.co/t/elastic-agent-install-creating-a-ton-of-folders/257421/1 "2020-12-02T21:17:22Z")

</div>

I got the elastic-agent to enroll using the follow command

```auto
>elastic-agent enroll https://localhost:5601 bHRPdUlIWUJSMzJvZjZwSktjbzQ6QUY0SmpvNFZSY1MxMUZCSk82S3ZRQQ -a \\wsl$\docker-desktop-data\version-pack-data\community\docker\volumes\es_certs\_data\ca\ca.crt --insecure

```

However if I try to install for the "Program Files" directory it never competes and I get nested folders containing the same data. I tried a few times every time the install was over 5 gigs. 3-6k worth of items. This is that my folder structure looks like after:

C:\Program Files\Elastic\Agent\Elastic\Agent\Elastic\Agent\Elastic\Agent

My install command:

```auto
.\elastic-agent.exe install -f --kibana-url=https://0:5601 --enrollment-token=bHRPdUlIWUJSMzJvZjZwSktjbzQ6QUY0SmpvNFZSY1MxMUZCSk82S3ZRQQ== -a \\wsl$\docker-desktop-data\version-pack-data\community\docker\volumes\es_certs\_data\ca\ca.crt

```

---

<div class="post-metadata">

**Author:** ![blaker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/blaker/32/65621_2.png) [@blaker](https://discuss.elastic.co/u/blaker)\
**Post date:** [December 3, 2020, 2:31am UTC](https://discuss.elastic.co/t/elastic-agent-install-creating-a-ton-of-folders/257421/2 "2020-12-03T02:31:25Z")

</div>

@cwobuzz What directory is the `elastic-agent.exe` located and where are you executing the `.\elastic-agent.exe install` command from?

---

<div class="post-metadata">

**Author:** ![cwobuzz](https://avatars.discourse-cdn.com/v4/letter/c/e0b2c6/32.png) [@cwobuzz](https://discuss.elastic.co/u/cwobuzz)\
**Post date:** [December 22, 2020, 10:17pm UTC](https://discuss.elastic.co/t/elastic-agent-install-creating-a-ton-of-folders/257421/3 "2020-12-22T22:17:15Z")

</div>

The fix was to install the new Agent 7.10.1

---

<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 19, 2021, 10:17pm UTC](https://discuss.elastic.co/t/elastic-agent-install-creating-a-ton-of-folders/257421/4 "2021-01-19T22:17:37Z")

</div>

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