# Problem copying a file from a network drive to a another directory (Windows 10)

**URL:** <https://forum.ansible.com/t/problem-copying-a-file-from-a-network-drive-to-a-another-directory-windows-10/32889>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [May 8, 2020, 4:36pm UTC](https://forum.ansible.com/t/problem-copying-a-file-from-a-network-drive-to-a-another-directory-windows-10/32889 "2020-05-08T16:36:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rwarken](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@rwarken](https://forum.ansible.com/u/rwarken)\
**Post date:** [May 8, 2020, 4:36pm UTC](https://forum.ansible.com/t/problem-copying-a-file-from-a-network-drive-to-a-another-directory-windows-10/32889/1 "2020-05-08T16:36:36Z")

</div>

Hi all.

As a beginner, one of the first playbooks I am developing is to copy a file from a network drive to the windows host.

`  
[warken1@ansible-controller windows-projects]$ ansible --version  
ansible 2.9.7  
config file = /etc/ansible/ansible.cfg  
configured module search path = [‘/home/warken1/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/lib/python3.6/site-packages/ansible  
executable location = /usr/bin/ansible  
python version = 3.6.8 (default, Nov 21 2019, 19:31:34) [GCC 8.3.1 20190507 (Red Hat 8.3.1-4)]

`

The playbook file\_TU\_copy.yml:

`

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [May 8, 2020, 6:38pm UTC](https://forum.ansible.com/t/problem-copying-a-file-from-a-network-drive-to-a-another-directory-windows-10/32889/2 "2020-05-08T18:38:17Z")

</div>

You cannot access mapped drives through WinRM. You need to use the full UNC path. Also you need to be aware of the credential delegation problem when accessing network paths when using WinRM. You can connect with CredSSP, or Kerberos with delegation or use become on the task to bypass that.
