# Install filebeat on windows

**URL:** <https://discuss.elastic.co/t/install-filebeat-on-windows/330279>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 19, 2023, 8:58am UTC](https://discuss.elastic.co/t/install-filebeat-on-windows/330279 "2023-04-19T08:58:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [April 19, 2023, 8:58am UTC](https://discuss.elastic.co/t/install-filebeat-on-windows/330279/1 "2023-04-19T08:58:06Z")

</div>

Hi, I am following the steps mentioned in the document

> **[Filebeat quick start: installation and configuration | Filebeat Reference...](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation-configuration.html)**

to install filebeat on windows.  
but when i run the following command

```auto
.\install-service-filebeat.ps1

```

or

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

```

i am getting the following error

```auto
PS C:\Program Files\Filebeat> PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-filebeat.ps1
The argument '.\install-service-filebeat.ps1' to the -File parameter does not exist. Provide the path to an existing '.ps1' file as an argument to the -File parameter.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

```

Same when i try it from command prompt also as admin in both cases.  
Please help me understand where i am going wrong with the installation

---

<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 17, 2023, 8:58am UTC](https://discuss.elastic.co/t/install-filebeat-on-windows/330279/2 "2023-05-17T08:58:35Z")

</div>

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