# Icinga does not supply the parameter to the script

**URL:** <https://community.icinga.com/t/icinga-does-not-supply-the-parameter-to-the-script/7275>\
**Category:** Icinga Web Modules\
**Tags:** powershell, icingaweb2, windows-agent, director, icinga2\
**Created:** [May 5, 2021, 1:52pm UTC](https://community.icinga.com/t/icinga-does-not-supply-the-parameter-to-the-script/7275 "2021-05-05T13:52:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![M.Lake](https://community.icinga.com/user_avatar/community.icinga.com/m.lake/32/4155_2.png) [@M.Lake](https://community.icinga.com/u/M.Lake)\
**Post date:** [May 5, 2021, 1:52pm UTC](https://community.icinga.com/t/icinga-does-not-supply-the-parameter-to-the-script/7275/1 "2021-05-05T13:52:20Z")

</div>

Hello everybody,

I have a problem with my custom powershell script. The powershell framework 1.4.1 is installed on the server. The script expect the name of a config-file in the same directory. Locally it works but if I embedd the script with the director, icinga does not supply the parameter.

Thats the configuration of the command:

 ![image](https://community.icinga.com/uploads/default/original/2X/c/cc550c89bfc0737a6752bef7a414b4b32fdd02c5.png)  
 ![image](https://community.icinga.com/uploads/default/original/2X/7/75f2535482a9fcd8ac861bd027c8d01c7083d477.png)

And the service:

![image](https://community.icinga.com/uploads/default/original/2X/6/6674ae1a5b039d5d1e47bfb31aab169278e1aa8a.png)

If you need more information, let me know.

Thank you 🙂

- Icinga 2 version used: r2.12.3-1
- Icinga Web 2 version: 2.8.0-rc1
- director version: master
- Web browser used: Opera
- Server operating system: Windows Server 2012 R2

---

<div class="post-metadata">

**Author:** ![ritzgu](https://community.icinga.com/letter_avatar_proxy/v4/letter/r/f19dbf/32.png) [@ritzgu](https://community.icinga.com/u/ritzgu)\
**Post date:** [May 5, 2021, 3:34pm UTC](https://community.icinga.com/t/icinga-does-not-supply-the-parameter-to-the-script/7275/2 "2021-05-05T15:34:57Z")

</div>

Hi @M.Lake

I’m not sure, but are the custom vars case senstive? The argument shows

`GetVolumeInfos_Configfile`  
but the service shows

`GetVolumeInfos_configfile`

Kind regards
