Security policy on the Windows server 2012 is not allowing the Metricbeat to be installed as a service.
We could alter execution policy to "Bypass" for Process and Localmachine but could not alter for other process. after the changes on follwing the installation instrctions, we are getting the below error.
Could some one help with a workaround to get the Metricbeat installed on the windows server.
Below is the security policy from the machine:
PS C:\WINDOWS\system32> Get-ExecutionPolicy -List
Scope ExecutionPolicy
----- ---------------
MachinePolicy RemoteSigned
UserPolicy RemoteSigned
Process Bypass
CurrentUser Undefined
LocalMachine Bypass
Error Message:
PS D:\Metricbeat> .\install-service-metricbeat.ps1
.\install-service-metricbeat.ps1 : File D:\Metricbeat\install-service-metricbeat.ps1 cannot be loaded. The file
D:\Metricbeat\install-service-metricbeat.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.
At line:1 char:1
- .\install-service-metricbeat.ps1
-
+ CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess