# I need to install filebeat service with Powershell disabled

**URL:** <https://discuss.elastic.co/t/i-need-to-install-filebeat-service-with-powershell-disabled/127543>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 10, 2018, 8:10pm UTC](https://discuss.elastic.co/t/i-need-to-install-filebeat-service-with-powershell-disabled/127543 "2018-04-10T20:10:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JimP](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@JimP](https://discuss.elastic.co/u/JimP)\
**Post date:** [April 10, 2018, 8:10pm UTC](https://discuss.elastic.co/t/i-need-to-install-filebeat-service-with-powershell-disabled/127543/1 "2018-04-10T20:10:43Z")

</div>

Powershell is disabled by internal InfoSec dept. How else can I install filebeat as a service on Windows 2012 R2 Datacenter, please?

I see that when installed with Powershell the service has this.

```
"D:\filebeat-6.2.3-windows-x86_64\\filebeat.exe" -c "D:\filebeat-6.2.3-windows-x86_64\\filebeat.yml" -path.home "D:\filebeat-6.2.3-windows-x86_64" -path.data "D:\filebeat-6.2.3-windows-x86_64" -path.logs "D:\filebeat-6.2.3-windows-x86_64\\logs"
```

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [April 11, 2018, 12:33pm UTC](https://discuss.elastic.co/t/i-need-to-install-filebeat-service-with-powershell-disabled/127543/2 "2018-04-11T12:33:09Z")

</div>

Without PowerShell you will have to find an alternative way to create the service so that the Beat runs at startup. You could probably use `sc.exe` to create a service similar to how the install powershell script does it.

---

<div class="post-metadata">

**Author:** ![JimP](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@JimP](https://discuss.elastic.co/u/JimP)\
**Post date:** [April 11, 2018, 1:56pm UTC](https://discuss.elastic.co/t/i-need-to-install-filebeat-service-with-powershell-disabled/127543/3 "2018-04-11T13:56:23Z")

</div>

Thanks. Here's what I ended up doing.

```
sc create filebeat binpath= "D:\filebeat-6.2.3-windows-x86_64\filebeate.exe"

```

Then open the registry to:

```
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\filebeat\

```

Modified the _ImagePath_ to this full command (from .ps1) :

```
"D:\filebeat-6.2.3-windows-x86_64\\filebeat.exe" -c "D:\filebeat-6.2.3-windows-x86_64\\filebeat.yml" -path.home "D:\filebeat-6.2.3-windows-x86_64" -path.data "D:\filebeat-6.2.3-windows-x86_64" -path.logs "D:\filebeat-6.2.3-windows-x86_64\\logs"

```

Open Services.msc and run service filebeat. Change startup type to Automatic.

---

<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:** [May 9, 2018, 1:56pm UTC](https://discuss.elastic.co/t/i-need-to-install-filebeat-service-with-powershell-disabled/127543/4 "2018-05-09T13:56:30Z")

</div>

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