Thanks
I went through like this
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS C:\WINDOWS\system32> cd F:\filebeat-5.3.1-windows-x86_64\filebeat
PS F:\filebeat-5.3.1-windows-x86_64\filebeat> dir
Directory: F:\filebeat-5.3.1-windows-x86_64\filebeat
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 17-04-2017 15:30 module
d----- 17-04-2017 15:44 scripts
-a---- 17-04-2017 15:43 41 .build_hash.txt
-a---- 17-04-2017 15:44 16101376 filebeat.exe
-a---- 17-04-2017 15:44 37050 filebeat.full.yml
-a---- 17-04-2017 15:44 15641 filebeat.template-es2x.json
-a---- 17-04-2017 15:44 12745 filebeat.template.json
-a---- 17-04-2017 15:44 4310 filebeat.yml
-a---- 17-04-2017 15:44 507 install-service-filebeat.ps1
-a---- 17-04-2017 15:42 97026 NOTICE
-a---- 17-04-2017 15:43 811 README.md
-a---- 17-04-2017 15:44 184 uninstall-service-filebeat.ps1
PS F:\filebeat-5.3.1-windows-x86_64\filebeat> PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-fileb
eat.ps1
PowerShell.exe : The term 'PowerShell.exe' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service- ...
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (PowerShell.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Still it is showing error. Do i need to change any setting in install-service-filebeat.ps1 file?
I also tried like this Set-ExecutionPolicy Unrestricted install-service-filebeat.ps1 but not working
Thanks