# Facing issue while installing filebeat 6.2.4

**URL:** <https://discuss.elastic.co/t/facing-issue-while-installing-filebeat-6-2-4/133536>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 28, 2018, 12:36pm UTC](https://discuss.elastic.co/t/facing-issue-while-installing-filebeat-6-2-4/133536 "2018-05-28T12:36:56Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![priti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priti/32/13828_2.png) [@priti](https://discuss.elastic.co/u/priti)\
**Post date:** [May 28, 2018, 12:36pm UTC](https://discuss.elastic.co/t/facing-issue-while-installing-filebeat-6-2-4/133536/1 "2018-05-28T12:36:56Z")

</div>

While installing filebeat , i am getting below error. Please help.

File C:\Filebeat\install-service-filebeat.ps1 cannot be loaded. The file C:\Filebeat\install-service-filebeat.ps1 is  
not digitally signed. You cannot run this script on the current system. For more information about running scripts and  
setting execution policy, see about\_Execution\_Policies at [http://go.microsoft.com/fwlink/?LinkID=135170](http://go.microsoft.com/fwlink/?LinkID=135170).  
+ CategoryInfo : SecurityError: (🙂 [], ParentContainsErrorRecordException  
+ FullyQualifiedErrorId : UnauthorizedAccess

---

<div class="post-metadata">

**Author:** ![Shaoranlaos](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Shaoranlaos](https://discuss.elastic.co/u/Shaoranlaos)\
**Post date:** [May 28, 2018, 1:18pm UTC](https://discuss.elastic.co/t/facing-issue-while-installing-filebeat-6-2-4/133536/2 "2018-05-28T13:18:15Z")

</div>

you will have to start the powershell in an Unrestricted mode  
the simpelst way is to use cmd and execute the following in the filebeat dir

```
PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-winlogbeat.ps1

```

see [https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation.html#filebeat-installation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation.html#filebeat-installation)  
last grey box

---

<div class="post-metadata">

**Author:** ![priti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priti/32/13828_2.png) [@priti](https://discuss.elastic.co/u/priti)\
**Post date:** [May 29, 2018, 3:14am UTC](https://discuss.elastic.co/t/facing-issue-while-installing-filebeat-6-2-4/133536/3 "2018-05-29T03:14:00Z")

</div>

> [@Shaoranlaos](#):
>
> PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-winlogbeat.ps1

After run above command also getting unauthorized access error.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/d/0dd3fcbf423f013f44dc3927cb9eb05d69a106aa.png)

---

<div class="post-metadata">

**Author:** ![Shaoranlaos](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Shaoranlaos](https://discuss.elastic.co/u/Shaoranlaos)\
**Post date:** [May 29, 2018, 4:56am UTC](https://discuss.elastic.co/t/facing-issue-while-installing-filebeat-6-2-4/133536/4 "2018-05-29T04:56:20Z")

</div>

don't execute it in Powershell but in cmd.exe

---

<div class="post-metadata">

**Author:** ![priti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priti/32/13828_2.png) [@priti](https://discuss.elastic.co/u/priti)\
**Post date:** [May 29, 2018, 5:46am UTC](https://discuss.elastic.co/t/facing-issue-while-installing-filebeat-6-2-4/133536/5 "2018-05-29T05:46:27Z")

</div>

from cmd.exe also getting same error  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/2/72866c7b374b4b5b29c964110629ab6abab396a6.png)

---

<div class="post-metadata">

**Author:** ![Shaoranlaos](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Shaoranlaos](https://discuss.elastic.co/u/Shaoranlaos)\
**Post date:** [May 29, 2018, 6:08am UTC](https://discuss.elastic.co/t/facing-issue-while-installing-filebeat-6-2-4/133536/6 "2018-05-29T06:08:15Z")

</div>

sorry forgotten to say you will need to start cmd.exe as administrator  
Hopefully then it will work (i always work as admin on our server so that was not obvious to me...)

If that doesn't help than i'm out of ideas beside to install the service manually  
[https://support.microsoft.com/en-us/help/251192/how-to-create-a-windows-service-by-using-sc-exe](https://support.microsoft.com/en-us/help/251192/how-to-create-a-windows-service-by-using-sc-exe)  
the parameter you can partially get from the ps script

---

<div class="post-metadata">

**Author:** ![Saketh\_Chandra\_Kolis](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Saketh\_Chandra\_Kolis](https://discuss.elastic.co/u/Saketh_Chandra_Kolis)\
**Post date:** [May 29, 2018, 6:30am UTC](https://discuss.elastic.co/t/facing-issue-while-installing-filebeat-6-2-4/133536/7 "2018-05-29T06:30:11Z")

</div>

when i try to run as an administrator this is what happens:

PS C:\Program Files\Filebeat\> PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-filebeat.ps1.

Security warning  
Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your  
computer. If you trust this script, use the Unblock-File cmdlet to allow the script to run without this warning  
message. Do you want to run C:\Program Files\Filebeat\install-service-filebeat.ps1?  
[D] Do not run [R] Run once [S] Suspend [?] Help (default is "D"): R

Status Name DisplayName

* * *

Stopped filebeat filebeat

---

<div class="post-metadata">

**Author:** ![Shaoranlaos](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Shaoranlaos](https://discuss.elastic.co/u/Shaoranlaos)\
**Post date:** [May 29, 2018, 6:46am UTC](https://discuss.elastic.co/t/facing-issue-while-installing-filebeat-6-2-4/133536/8 "2018-05-29T06:46:45Z")

</div>

yeah thats good the service is installed  
now you only must start it like you start every windows service (services in start)  
don't forget to double check your config before you start the service

---

<div class="post-metadata">

**Author:** ![priti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priti/32/13828_2.png) [@priti](https://discuss.elastic.co/u/priti)\
**Post date:** [May 29, 2018, 6:53am UTC](https://discuss.elastic.co/t/facing-issue-while-installing-filebeat-6-2-4/133536/9 "2018-05-29T06:53:56Z")

</div>

> [@Saketh\_Chandra\_Kolis](#):
>
> essage. Do you want to run C:\Program Files\Filebeat\install-service-filebeat.ps1?  
> [D] Do not run [R] Run once [S] Suspend [?] Help (default is "D"): R

For me not asking to select any option, directly giving error.

---

<div class="post-metadata">

**Author:** ![Saketh\_Chandra\_Kolis](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Saketh\_Chandra\_Kolis](https://discuss.elastic.co/u/Saketh_Chandra_Kolis)\
**Post date:** [May 29, 2018, 6:57am UTC](https://discuss.elastic.co/t/facing-issue-while-installing-filebeat-6-2-4/133536/10 "2018-05-29T06:57:04Z")

</div>

I would suggest running it on the power shell as an administrator rather than command prompt.

---

<div class="post-metadata">

**Author:** ![Saketh\_Chandra\_Kolis](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Saketh\_Chandra\_Kolis](https://discuss.elastic.co/u/Saketh_Chandra_Kolis)\
**Post date:** [May 29, 2018, 7:01am UTC](https://discuss.elastic.co/t/facing-issue-while-installing-filebeat-6-2-4/133536/11 "2018-05-29T07:01:17Z")

</div>

thanks man !

---

<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:** [June 26, 2018, 7:01am UTC](https://discuss.elastic.co/t/facing-issue-while-installing-filebeat-6-2-4/133536/12 "2018-06-26T07:01:18Z")

</div>

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