# Filebeat install script for windows is broken

**URL:** <https://discuss.elastic.co/t/filebeat-install-script-for-windows-is-broken/122119>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 1, 2018, 4:12pm UTC](https://discuss.elastic.co/t/filebeat-install-script-for-windows-is-broken/122119 "2018-03-01T16:12:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![red888](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@red888](https://discuss.elastic.co/u/red888)\
**Post date:** [March 1, 2018, 4:12pm UTC](https://discuss.elastic.co/t/filebeat-install-script-for-windows-is-broken/122119/1 "2018-03-01T16:12:31Z")

</div>

I tried to use the powershell install script, but it created a service that would not start.

Then i looked at the script and the service and found extra slash erroneously put in there

install-service-filebeat.ps1:  
....  
# create new service  
New-Service -name filebeat `-displayName filebeat`  
-binaryPathName "`"$workdir\\filebeat.exe`" -c `"$workdir\\filebeat.yml`" -path.home `"$workdir`" -path.data `"C:\\ProgramData\\filebeat`" -path.logs `"C:\\ProgramData\\filebeat\logs`""

And the service:  
 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/6/c/6cc4432eebd3a2850ea362305cfd4f1a2b6ce6de.PNG)

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [March 1, 2018, 6:40pm UTC](https://discuss.elastic.co/t/filebeat-install-script-for-windows-is-broken/122119/2 "2018-03-01T18:40:33Z")

</div>

Is filebeat service failing to start for you?

I can confirm the double-slashes are there but this isn't causing any problems and the service starts and stops as expected. Double-slashes for a directory are hardly a problem.

---

<div class="post-metadata">

**Author:** ![red888](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@red888](https://discuss.elastic.co/u/red888)\
**Post date:** [March 1, 2018, 7:53pm UTC](https://discuss.elastic.co/t/filebeat-install-script-for-windows-is-broken/122119/3 "2018-03-01T19:53:29Z")

</div>

I was wrong it was a syntax error, still dont know how to delete posts ☹

---

<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:** [March 29, 2018, 7:53pm UTC](https://discuss.elastic.co/t/filebeat-install-script-for-windows-is-broken/122119/4 "2018-03-29T19:53:40Z")

</div>

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