Install filebeat on windows

Hi, I am following the steps mentioned in the document

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

.\install-service-filebeat.ps1

or

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

i am getting the following error

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

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