# Regardin\_Win\_get\_url

**URL:** <https://forum.ansible.com/t/regardin-win-get-url/27355>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [April 23, 2018, 5:30pm UTC](https://forum.ansible.com/t/regardin-win-get-url/27355 "2018-04-23T17:30:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kavin.kumaran](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@kavin.kumaran](https://forum.ansible.com/u/kavin.kumaran)\
**Post date:** [April 23, 2018, 5:30pm UTC](https://forum.ansible.com/t/regardin-win-get-url/27355/1 "2018-04-23T17:30:35Z")

</div>

Hi All,  
I am trying to get the files form windows machine using ftp.If I run the playbook i was getting the below mentioned errors.Can anyone help me regarding this error.

FAILED! =\> {“changed”: false, “module\_stderr”: “Shared connection to 172.31.7.231 closed.\r\n”, “module\_stdout”: “/bin/sh: powershell: command not found\r\n”, “msg”: “MODULE FAILURE”, “rc”: 127}

---

<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:** [April 23, 2018, 8:01pm UTC](https://forum.ansible.com/t/regardin-win-get-url/27355/2 "2018-04-23T20:01:02Z")

</div>

You are trying to connect to the host 172.31.7.231 with SSH whereas we only support WinRM with Windows. Make sure you set **ansible\_connection: winrm** in your inventory so it runs over WinRM.

Thanks

Jordan
