# Problem with ansible winrm

**URL:** <https://forum.ansible.com/t/problem-with-ansible-winrm/26035>\
**Category:** Ansible Project\
**Created:** [November 15, 2017, 3:28pm UTC](https://forum.ansible.com/t/problem-with-ansible-winrm/26035 "2017-11-15T15:28:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve.vibert](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@steve.vibert](https://forum.ansible.com/u/steve.vibert)\
**Post date:** [November 15, 2017, 3:28pm UTC](https://forum.ansible.com/t/problem-with-ansible-winrm/26035/1 "2017-11-15T15:28:58Z")

</div>

Hi

I try to get winrm up ans running. I have many servers (30) where is working but some not working (5)with this message

fatal: [Servername]: FAILED! =\> {“changed”: false, “failed”: true, “module\_stderr”: “Le terme « ConvertFrom-Json » n’est pas reconnu comme nom d’applet de commande,\r\n fonction, fichier de script ou programme exécutable. Vérifiez l’orthographe du\r\n nom, ou si un chemin d’accès existe, vérifiez que le chemin d’accès est correc\r\nt et réessayez.\r\nAu niveau de ligne : 31 Caractère : 71\r\n+ $payload = ConvertTo-HashtableFromPsCustomObject (ConvertFrom-Json \<\<\<\< \r\n$json\_raw)\r\n + CategoryInfo : ObjectNotFound: (ConvertFrom-Json:String) , Pa \r\n rentContainsErrorRecordException\r\n + FullyQualifiedErrorId : CommandNotFoundException\r\n \r\n”, “module\_stdout”: “”, “msg”: “MODULE FAILURE”, “rc”: 1}f

Excused is it in french but the essentiel message tell the applet name wasn’t recognized, Verify the syntax or if the directory exist and retry.

The connection to the winrm is done (verified in the event viewer), i think the problem was with the creation of the directory.

Any tips , tricks or something was appreciated. I search for a few day now

---

<div class="post-metadata">

**Author:** ![steve.vibert](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@steve.vibert](https://forum.ansible.com/u/steve.vibert)\
**Post date:** [November 15, 2017, 3:37pm UTC](https://forum.ansible.com/t/problem-with-ansible-winrm/26035/2 "2017-11-15T15:37:19Z")

</div>



---

<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:** [November 15, 2017, 7:16pm UTC](https://forum.ansible.com/t/problem-with-ansible-winrm/26035/3 "2017-11-15T19:16:03Z")

</div>

Make sure you meet the requirements for Ansible as documented here [http://docs.ansible.com/ansible/devel/windows\_setup.html#host-requirements](http://docs.ansible.com/ansible/devel/windows_setup.html#host-requirements). It requires at least PowerShell v3 which is when the ConvertTo-Json cmdlet was added.

---

<div class="post-metadata">

**Author:** ![steve.vibert](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@steve.vibert](https://forum.ansible.com/u/steve.vibert)\
**Post date:** [November 16, 2017, 12:27pm UTC](https://forum.ansible.com/t/problem-with-ansible-winrm/26035/4 "2017-11-16T12:27:36Z")

</div>

Thank you Jordan

It was the problem for a few server and the firewall rules for some another server.
