# win\_shell task failing with ansible error: Get-AnsibleParam: Missing required argument: \_raw\_params

**URL:** <https://forum.ansible.com/t/win-shell-task-failing-with-ansible-error-get-ansibleparam-missing-required-argument-raw-params/28259>\
**Category:** Ansible Project\
**Created:** [August 4, 2018, 5:43am UTC](https://forum.ansible.com/t/win-shell-task-failing-with-ansible-error-get-ansibleparam-missing-required-argument-raw-params/28259 "2018-08-04T05:43:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ali\_Khawaja](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@Ali\_Khawaja](https://forum.ansible.com/u/Ali_Khawaja)\
**Post date:** [August 4, 2018, 5:43am UTC](https://forum.ansible.com/t/win-shell-task-failing-with-ansible-error-get-ansibleparam-missing-required-argument-raw-params/28259/1 "2018-08-04T05:43:25Z")

</div>

Ansible version: 2.6.1 (and I tried with 2.7.0 development branch as well)

I have a simple win\_shell task though which I am trying to execute powershell script which is sitting on the remote system. I have verified the path and the existence of script.

- name: DPS Server Installation

win\_shell:

args: C:\temp\nd6.1.1.20.7\Scripts\nd.Install\Install-DPS.ps1

Ansible keeps failing with the following error message:

TASK [DPS Server Installation] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

fatal: [i-01f6259784352dff3]: FAILED! =\> {“changed”: false, “msg”: “Get-AnsibleParam: Missing required argument: \_raw\_params”}

to retry, use: --limit @/mnt/c/GitHub/alikha-spnd/autosp.retry

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [August 6, 2018, 10:42am UTC](https://forum.ansible.com/t/win-shell-task-failing-with-ansible-error-get-ansibleparam-missing-required-argument-raw-params/28259/2 "2018-08-06T10:42:44Z")

</div>

Have a look at the examples in the module documentation [https://docs.ansible.com/ansible/latest/modules/win\_shell\_module.html#examples](https://docs.ansible.com/ansible/latest/modules/win_shell_module.html#examples) and you’ll see the format is a little different.  
This ought to run your script.

You might want to use the `script` module which can deliver your script to the remote machine and run it in the same step (script also works for windows targets).

- name: DPS Server Installation

win\_shell: C:\temp\nd6.1.1.20.7\Scripts\nd.Install\Install-DPS.ps1

Hope this helps,

Jon
