# win\_copy failing

**URL:** <https://forum.ansible.com/t/win-copy-failing/20508>\
**Category:** Ansible Project\
**Created:** [February 10, 2016, 12:24pm UTC](https://forum.ansible.com/t/win-copy-failing/20508 "2016-02-10T12:24:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Matthews](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Mark\_Matthews](https://forum.ansible.com/u/Mark_Matthews)\
**Post date:** [February 10, 2016, 12:24pm UTC](https://forum.ansible.com/t/win-copy-failing/20508/1 "2016-02-10T12:24:12Z")

</div>

Hi

I am getting errors when trying to do a win\_copy from a remote server to destinations servers.

The playbook is the following:

---

<div class="post-metadata">

**Author:** ![Mark\_Matthews](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Mark\_Matthews](https://forum.ansible.com/u/Mark_Matthews)\
**Post date:** [February 10, 2016, 3:34pm UTC](https://forum.ansible.com/t/win-copy-failing/20508/2 "2016-02-10T15:34:41Z")

</div>

Im trying to find out if it is possible to copy a folder (with sub folders) from one Windows server on the network to all Windows servers in the playbook?

---

<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:** [February 11, 2016, 11:15am UTC](https://forum.ansible.com/t/win-copy-failing/20508/3 "2016-02-11T11:15:18Z")

</div>

I don’t think win\_copy can collect from a share like you are trying to do in the example above.

The assumption is that the source file you are copying is on the ansible controller.

One trick you could use is to run smbclient on the ansible controller to collect the files you want to deploy to your windows clients first, then you can win\_copy them across.

You might be able to use script to collect files from a share but you are likely to need to pass credentials to the script running on your windows machines (windows makes a distinction about whether or not you are logged in as an interactive user - if you are not, such as when you are using remoting - then different permissions apply and you may not have access to the remote share).

Hope this helps,

Jon
