# Winlogbeat Installation using Powershell ISE

**URL:** <https://discuss.elastic.co/t/winlogbeat-installation-using-powershell-ise/109433>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [November 28, 2017, 4:08pm UTC](https://discuss.elastic.co/t/winlogbeat-installation-using-powershell-ise/109433 "2017-11-28T16:08:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Chirillo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tony_chirillo/32/22647_2.png) [@Tony\_Chirillo](https://discuss.elastic.co/u/Tony_Chirillo)\
**Post date:** [November 28, 2017, 4:08pm UTC](https://discuss.elastic.co/t/winlogbeat-installation-using-powershell-ise/109433/1 "2017-11-28T16:08:11Z")

</div>

Hello,

I am following the installation instructions for Winlogbeat here: [https://www.elastic.co/guide/en/beats/winlogbeat/current/winlogbeat-installation.html](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

---

<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:** [November 28, 2017, 4:13pm UTC](https://discuss.elastic.co/t/winlogbeat-installation-using-powershell-ise/109433/2 "2017-11-28T16:13:35Z")

</div>

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](https://stackoverflow.com/a/2990762/503798)

Can you trying installing it without using Powershell ISE.

---

<div class="post-metadata">

**Author:** ![Tony\_Chirillo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tony_chirillo/32/22647_2.png) [@Tony\_Chirillo](https://discuss.elastic.co/u/Tony_Chirillo)\
**Post date:** [December 5, 2017, 4:54pm UTC](https://discuss.elastic.co/t/winlogbeat-installation-using-powershell-ise/109433/3 "2017-12-05T16:54:36Z")

</div>

Yep - that seemed to work. ISE = bad juju. 🙂

---

<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:** [December 19, 2017, 4:08pm UTC](https://discuss.elastic.co/t/winlogbeat-installation-using-powershell-ise/109433/4 "2017-12-19T16:08:12Z")

</div>

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