# Why do not you have the .ps1 extension when decompressing the filebeat package

**URL:** <https://discuss.elastic.co/t/why-do-not-you-have-the-ps1-extension-when-decompressing-the-filebeat-package/85636>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 13, 2017, 10:31am UTC](https://discuss.elastic.co/t/why-do-not-you-have-the-ps1-extension-when-decompressing-the-filebeat-package/85636 "2017-05-13T10:31:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fly/32/17992_2.png) [@Fly](https://discuss.elastic.co/u/Fly)\
**Post date:** [May 13, 2017, 10:31am UTC](https://discuss.elastic.co/t/why-do-not-you-have-the-ps1-extension-when-decompressing-the-filebeat-package/85636/1 "2017-05-13T10:31:04Z")

</div>

Hi everybody  
I want to install filebeat on Windows server 2012 R2 va windows 10 . But when I extracted the package, I did not have the .ps1 extension so the installation was not successful.  
I have tried many times.  
Thanks!

 ![](https://us1.discourse-cdn.com/elastic/original/3X/6/1/61f8be7e2e9b8776a1df244039ce751a0ab1576b.png)

---

<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:** [May 13, 2017, 11:55am UTC](https://discuss.elastic.co/t/why-do-not-you-have-the-ps1-extension-when-decompressing-the-filebeat-package/85636/2 "2017-05-13T11:55:11Z")

</div>

Please try following the installation instructions in the [Getting Started Guide](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation.html). You will use a powershell terminal to run the script.

---

<div class="post-metadata">

**Author:** ![Fly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fly/32/17992_2.png) [@Fly](https://discuss.elastic.co/u/Fly)\
**Post date:** [May 13, 2017, 12:37pm UTC](https://discuss.elastic.co/t/why-do-not-you-have-the-ps1-extension-when-decompressing-the-filebeat-package/85636/3 "2017-05-13T12:37:29Z")

</div>

Hi andrewkroh, Thank you for answering my question.  
All I used powershell to install. The steps are as follows:  
**Step 1** Run powershell as admin  
**Step 2** Run command: Invoke-WebRequest [https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.3.2-windows-x86\_64.zip](https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.3.2-windows-x86_64.zip) -OutFile C:\filebeat-5.3.2-windows-x86\_64.zip  
**Step 3** : Expand-Archive -Path C:\filebeat-5.3.2-windows-x86\_64.zip -DestinationPath 'C:\Program Files'  
**Step 4** : Rename-Item 'C:\Program Files\filebeat-5.3.2-windows-x86\_64' 'C:\Program Files\Filebeat'  
**Step 5:** Remove-Item C:\filebeat-5.3.2-windows-x86\_64.zip  
**Step 6** PowerShell.exe -ExecutionPolicy UnRestricted -File 'C:\Program Files\Filebeat\ filebeat-5.3.2-windows-x86\_64\install-service-filebeat.ps1'

at step 6 The system error message does not have an .ps1 extension for installation

☹

---

<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:** [May 13, 2017, 1:51pm UTC](https://discuss.elastic.co/t/why-do-not-you-have-the-ps1-extension-when-decompressing-the-filebeat-package/85636/4 "2017-05-13T13:51:41Z")

</div>

Can you please provide a directory listing (via paste and not a screenshot)? Like...

`PS > dir C:\Program Files\Filebeat\filebeat-5.3.2-windows-x86_64\`

And can you paste the exact error message you get when running the command in step 6.

---

<div class="post-metadata">

**Author:** ![Fly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fly/32/17992_2.png) [@Fly](https://discuss.elastic.co/u/Fly)\
**Post date:** [May 15, 2017, 1:11am UTC](https://discuss.elastic.co/t/why-do-not-you-have-the-ps1-extension-when-decompressing-the-filebeat-package/85636/5 "2017-05-15T01:11:27Z")

</div>

I solved my mistake. Thanks for your support. 😃  
Have a nice day! =)))

---

<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 12, 2017, 1:13am UTC](https://discuss.elastic.co/t/why-do-not-you-have-the-ps1-extension-when-decompressing-the-filebeat-package/85636/6 "2017-06-12T01:13:21Z")

</div>

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