# Heartbeat | Problem installing on Windows

**URL:** https://discuss.elastic.co/t/heartbeat-problem-installing-on-windows/204686
**Category:** Beats
**Tags:** heartbeat
**Created:** [October 22, 2019, 3:51pm UTC](https://discuss.elastic.co/t/heartbeat-problem-installing-on-windows/204686 "2019-10-22T15:51:03Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![andrezenun](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@andrezenun](https://discuss.elastic.co/u/andrezenun)
#### Post date: [October 22, 2019, 3:51pm UTC](https://discuss.elastic.co/t/heartbeat-problem-installing-on-windows/204686/1 "2019-10-22T15:51:03Z")

</div>

Hi, I'm trying to install heartbeat on a Windows 2012 Server and I got this error:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/a/bab64b439f5074d9f4ebcc334671c0a50950abe9.png)

The install script seams to be the same as the other beats. I have installed metricbeat and packetbeat on this same server!  
Any one got this error?  
Thanks

---

<div class="post-metadata">

### Author: ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)
#### Post date: [October 24, 2019, 8:45pm UTC](https://discuss.elastic.co/t/heartbeat-problem-installing-on-windows/204686/2 "2019-10-24T20:45:21Z")

</div>

You'll need to run `PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-heartbeat.ps1` per the [docs](https://www.elastic.co/guide/en/beats/heartbeat/current/heartbeat-installation.html) here. I'm not sure why it worked for the other beats, those also use unsigned scripts.

---

<div class="post-metadata">

### Author: ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)
#### Post date: [October 24, 2019, 8:45pm UTC](https://discuss.elastic.co/t/heartbeat-problem-installing-on-windows/204686/3 "2019-10-24T20:45:55Z")

</div>

To clarify, it looks like you just missed the first `PowerShell.exe` part.

---

<div class="post-metadata">

### Author: ![andrezenun](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@andrezenun](https://discuss.elastic.co/u/andrezenun)
#### Post date: [October 25, 2019, 6:55pm UTC](https://discuss.elastic.co/t/heartbeat-problem-installing-on-windows/204686/4 "2019-10-25T18:55:36Z")

</div>

Hi, I'll try that, but I don't remember to use PowerShell.exe on the other beats because I'm inside the PS prompt. But I'll give it a try!

---

<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: [November 22, 2019, 6:55pm UTC](https://discuss.elastic.co/t/heartbeat-problem-installing-on-windows/204686/5 "2019-11-22T18:55:37Z")

</div>

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