Winlogbeat Installation using Powershell ISE

Hello,

I am following the installation instructions for Winlogbeat here: https://www.elastic.co/guide/en/beats/winlogbeat/current/winlogbeat-installation.html

However, I am running the code in the install-service-winlogbeat.ps1 file in Powershell ISE. The code\script returns the following error from this line: $workdir = Split-Path $MyInvocation.MyCommand.Path

Split-Path : Cannot bind argument to parameter 'Path' because it is null.

Is this due to running the code in ISE or is their a bug in the provided installation script from Elastic?

-Tony

I've never seen that error when running outside of ISE. So I'd assume it's something with the running it in ISE. My guess is this: https://stackoverflow.com/a/2990762/503798

Can you trying installing it without using Powershell ISE.

Yep - that seemed to work. ISE = bad juju. :slight_smile:

This topic was automatically closed after 21 days. New replies are no longer allowed.