# Problem with copy content from UNC path to local on Windows

**URL:** <https://forum.ansible.com/t/problem-with-copy-content-from-unc-path-to-local-on-windows/39303>\
**Category:** Get Help\
**Tags:** windows\
**Created:** [December 23, 2024, 11:00pm UTC](https://forum.ansible.com/t/problem-with-copy-content-from-unc-path-to-local-on-windows/39303 "2024-12-23T23:00:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![virusek391](https://avatars.discourse-cdn.com/v4/letter/v/41988e/32.png) [@virusek391](https://forum.ansible.com/u/virusek391)\
**Post date:** [December 23, 2024, 11:00pm UTC](https://forum.ansible.com/t/problem-with-copy-content-from-unc-path-to-local-on-windows/39303/1 "2024-12-23T23:00:25Z")

</div>

Hi,  
I created YAML Script that should copy folder ,konserwacja" to local. I dont know why, but the folder on Windows in the path ,c:\konserwacja" is empty ☹

I using Windows 11 Pro.

Below is part of the playbook, that should copy folder from network to local.

```auto
   - name: Copy files from network share to local folder
     ansible.windows.win_shell: |
        Copy-Item -Path "\\\\10.0.0.14\\wspolne\\konserwacja\\*" -Destination "C:\\konserwacja\\" -Recurse -Force
     register: result
     args:
        executable: powershell

   - name: Debug copied files
     ansible.builtin.debug:
        var: result.stdout_lines

```

Below is debug:

 ![obraz](https://us1.discourse-cdn.com/ansible/original/2X/c/cd9d84751a13c7a246ab6406a735ad072776ffa1.png)

Bellow is hosts setting:

```auto
[pcwindows]
komp2 ansible_host=10.0.0.230

[pcwindows:vars]
ansible_user=Admin
ansible_password=XXXX
ansible_port=5985
ansible_connection=winrm
ansible_winrm_transport=basic
ansible_winrm_server_cert_validation=ignore

```

The Admin user has permission to use the resource: wspolne (\10.0.0.14\wspolne)

---

<div class="post-metadata">

**Author:** ![virusek391](https://avatars.discourse-cdn.com/v4/letter/v/41988e/32.png) [@virusek391](https://forum.ansible.com/u/virusek391)\
**Post date:** [December 25, 2024, 7:57pm UTC](https://forum.ansible.com/t/problem-with-copy-content-from-unc-path-to-local-on-windows/39303/2 "2024-12-25T19:57:30Z")

</div>

I have already solved this problem, the case is no longer active 🙂
