# Powershell util scripts - unable to use Exit-Json or return Json respone to ansible

**URL:** <https://forum.ansible.com/t/powershell-util-scripts-unable-to-use-exit-json-or-return-json-respone-to-ansible/18360>\
**Category:** Ansible Developer\
**Created:** [May 31, 2015, 2:13pm UTC](https://forum.ansible.com/t/powershell-util-scripts-unable-to-use-exit-json-or-return-json-respone-to-ansible/18360 "2015-05-31T14:13:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amir\_Luzon](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Amir\_Luzon](https://forum.ansible.com/u/Amir_Luzon)\
**Post date:** [May 31, 2015, 2:13pm UTC](https://forum.ansible.com/t/powershell-util-scripts-unable-to-use-exit-json-or-return-json-respone-to-ansible/18360/1 "2015-05-31T14:13:29Z")

</div>

so i have an environment with control machine:

ansible --version  
ansible 1.9.1  
configured module search path = /usr/share/ansible

i’m trying to use the integrated powershell utilities for sending and returning (Exit-Json, Fail-Json) but the powershell script i am using does not recognize these:

changed: =\> {“changed”: true, “rc”: 0, “stderr”: "Set-Attr : The term ‘Set-Attr’ is not recognized as the name of a cmdlet, \r\nfunction, script file, or operable program. Check the spelling of the name, or \r\nif a path was included, verify that the path is correct and try again…

i am new to ansible and maybe i am missing something here, please assist.

here is the playbook:

---

<div class="post-metadata">

**Author:** ![Chris\_Church1](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@Chris\_Church1](https://forum.ansible.com/u/Chris_Church1)\
**Post date:** [May 31, 2015, 5:54pm UTC](https://forum.ansible.com/t/powershell-util-scripts-unable-to-use-exit-json-or-return-json-respone-to-ansible/18360/2 "2015-05-31T17:54:04Z")

</div>

>

---

<div class="post-metadata">

**Author:** ![Amir\_Luzon](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Amir\_Luzon](https://forum.ansible.com/u/Amir_Luzon)\
**Post date:** [June 1, 2015, 8:05am UTC](https://forum.ansible.com/t/powershell-util-scripts-unable-to-use-exit-json-or-return-json-respone-to-ansible/18360/3 "2015-06-01T08:05:41Z")

</div>

Thanks for the info that did it 🙂
