# Setup Fleet on Windows. I cannot get it to work at all

**URL:** <https://discuss.elastic.co/t/setup-fleet-on-windows-i-cannot-get-it-to-work-at-all/299095>\
**Category:** Beats\
**Tags:** fleet\
**Created:** [March 8, 2022, 1:41pm UTC](https://discuss.elastic.co/t/setup-fleet-on-windows-i-cannot-get-it-to-work-at-all/299095 "2022-03-08T13:41:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akon](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Akon](https://discuss.elastic.co/u/Akon)\
**Post date:** [March 8, 2022, 1:41pm UTC](https://discuss.elastic.co/t/setup-fleet-on-windows-i-cannot-get-it-to-work-at-all/299095/1 "2022-03-08T13:41:47Z")

</div>

Hello, I cant seem to get Elastic Fleet Server to run on Windows. I tried the official and this solution aswell. We have set up security with a certificate but every possible way does not seem to work.

> [@Fleet server setup documentation incorrect when using quickstart + (elastic with TLS)](https://discuss.elastic.co/t/fleet-server-setup-documentation-incorrect-when-using-quickstart-elastic-with-tls/288526):
>
> The documentation for setting up a fleet server, both the online guide and via the 'Add a fleet server', don't account for a situation where Elasticsearch is configured with TLS, but you want to use Quickstart for setting up a fleet server. Selecting quickstart generates the following command: ./elastic-agent install -f --fleet-server-es=http://localhost:9200 --fleet-server-service-token=\<redacted\> --fleet-server-policy=\<redacted\> (Note ES URL is http, not https) This causes the elastic …

I used this command in Powershell

.\elastic-agent.exe install -v `

> > --fleet-server-es=[https://127.0.0.1:9200](https://127.0.0.1:9200) ` --fleet-server-service-token=AAEAAWVsYXN0aWMvZmxlZXQtc2Vyxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`  
> > --fleet-server-policy=19d0a4e0-e70c-11eb-bc7a-xxxxxxxxx `  
> > --fleet-server-es-ca="C:\install\new\elasticsearch-7.17.1-windows-x86\_64\elasticsearch-7.17.1\elasticsearch-ca.pem"

The only error message I get is

Error: failed to communicate with elastic-agent daemon; is elastic-agent running?

Any help would be highly appriciated.

---

<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 5, 2022, 1:42pm UTC](https://discuss.elastic.co/t/setup-fleet-on-windows-i-cannot-get-it-to-work-at-all/299095/2 "2022-04-05T13:42:42Z")

</div>

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