# Elastic installation broken

**URL:** <https://discuss.elastic.co/t/elastic-installation-broken/370760>\
**Category:** Elastic Agent\
**Created:** [November 19, 2024, 10:30am UTC](https://discuss.elastic.co/t/elastic-installation-broken/370760 "2024-11-19T10:30:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rom\_Pe](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@Rom\_Pe](https://discuss.elastic.co/u/Rom_Pe)\
**Post date:** [November 19, 2024, 10:30am UTC](https://discuss.elastic.co/t/elastic-installation-broken/370760/1 "2024-11-19T10:30:50Z")

</div>

Hey there, after trying to install the Elastic agent the Powershell gave me this error:

![image](https://us1.discourse-cdn.com/elastic/original/3X/3/8/3861b9dac2bcdc78afe8461ba2cb1a03208943c2.png)

I cas see that the archive had been installed but he cannot communicate with the server.

What can I do do in order to fix it?

---

<div class="post-metadata">

**Author:** ![Rom\_Pe](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@Rom\_Pe](https://discuss.elastic.co/u/Rom_Pe)\
**Post date:** [November 19, 2024, 10:52am UTC](https://discuss.elastic.co/t/elastic-installation-broken/370760/2 "2024-11-19T10:52:25Z")

</div>

Just solved the problem myself, in case that you got this query delete the service from the list with "sc delete ElasticAgent" and install it again.

---

<div class="post-metadata">

**Author:** ![sholzhauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sholzhauer/32/110282_2.png) [@sholzhauer](https://discuss.elastic.co/u/sholzhauer)\
**Post date:** [November 19, 2024, 10:52am UTC](https://discuss.elastic.co/t/elastic-installation-broken/370760/3 "2024-11-19T10:52:28Z")

</div>

try adding a `-f` in the installation command.

If that doesn't work and the previous installation was able to communicate at least once with fleet, you might have "tamper protection" activated. Go to kibana to get an uninstall token.

---

<div class="post-metadata">

**Author:** ![Rom\_Pe](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@Rom\_Pe](https://discuss.elastic.co/u/Rom_Pe)\
**Post date:** [November 19, 2024, 10:57am UTC](https://discuss.elastic.co/t/elastic-installation-broken/370760/4 "2024-11-19T10:57:03Z")

</div>

I tried that but once the service is installed it will block any other tries of installing the service with any token again.
