# ERROR: win\_copy is not a legal parameter in an Ansible task or handler

**URL:** <https://forum.ansible.com/t/error-win-copy-is-not-a-legal-parameter-in-an-ansible-task-or-handler/18139>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [April 30, 2015, 7:14am UTC](https://forum.ansible.com/t/error-win-copy-is-not-a-legal-parameter-in-an-ansible-task-or-handler/18139 "2015-04-30T07:14:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob\_Tanner](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Post date:** [April 30, 2015, 7:14am UTC](https://forum.ansible.com/t/error-win-copy-is-not-a-legal-parameter-in-an-ansible-task-or-handler/18139/1 "2015-04-30T07:14:47Z")

</div>

I thought the win\_\* stuff was merged into 1.9?

$ ansible --version  
ansible 2.0.0 (devel b08e35bb8a) last updated 2015/04/29 09:50:21 (GMT -500)  
lib/ansible/modules/core: (detached HEAD e95c0b2df3) last updated 2015/04/30 02:06:46 (GMT -500)  
lib/ansible/modules/extras: (detached HEAD 764a0e26b6) last updated 2015/04/30 02:06:48 (GMT -500)  
v2/ansible/modules/core: (detached HEAD 34784b7a61) last updated 2015/04/30 02:06:49 (GMT -500)  
v2/ansible/modules/extras: (detached HEAD 764a0e26b6) last updated 2015/04/30 02:06:50 (GMT -500)  
configured module search path = None

I’m probably just doing something wrong.

- name: Copy PinnedApplications.ps1 to module path  
win\_copy: src=PinnedApplications.ps1 dest=“C:\Users\Administrator\Documents\WindowsPowerShell\Modules”

$ ansible-playbook --ask-pass -i windows-testing windows-workstations.yml  
ERROR: win\_copy is not a legal parameter in an Ansible task or handler

---

<div class="post-metadata">

**Author:** ![ken.krog82](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@ken.krog82](https://forum.ansible.com/u/ken.krog82)\
**Post date:** [May 1, 2015, 1:29am UTC](https://forum.ansible.com/t/error-win-copy-is-not-a-legal-parameter-in-an-ansible-task-or-handler/18139/2 "2015-05-01T01:29:47Z")

</div>

I’m having the same issue. Any luck?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [May 1, 2015, 1:35am UTC](https://forum.ansible.com/t/error-win-copy-is-not-a-legal-parameter-in-an-ansible-task-or-handler/18139/3 "2015-05-01T01:35:18Z")

</div>

some "win stuff" was, win\_copy was not part of that stuff.

---

<div class="post-metadata">

**Author:** ![Bob\_Tanner](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Bob\_Tanner](https://forum.ansible.com/u/Bob_Tanner)\
**Post date:** [May 1, 2015, 2:13am UTC](https://forum.ansible.com/t/error-win-copy-is-not-a-legal-parameter-in-an-ansible-task-or-handler/18139/4 "2015-05-01T02:13:41Z")

</div>

So the posts where I saw people using action scripts (as part of win\_copy?), that is outside the normal git development tree? I’d need to merge in the PR that is listed in those posts?

---

<div class="post-metadata">

**Author:** ![ken.krog82](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@ken.krog82](https://forum.ansible.com/u/ken.krog82)\
**Post date:** [May 1, 2015, 2:34am UTC](https://forum.ansible.com/t/error-win-copy-is-not-a-legal-parameter-in-an-ansible-task-or-handler/18139/5 "2015-05-01T02:34:42Z")

</div>

OK, so that is not even really ansible code?  
I also saw some stuff about using winexe as a possible custom written module. Might consider that until win\_copy is out.
