# I am stump need to remove square brackets

**URL:** <https://forum.ansible.com/t/i-am-stump-need-to-remove-square-brackets/37308>\
**Category:** Ansible Project\
**Tags:** windows, ansible-project\
**Created:** [November 6, 2022, 7:03am UTC](https://forum.ansible.com/t/i-am-stump-need-to-remove-square-brackets/37308 "2022-11-06T07:03:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [November 6, 2022, 7:03am UTC](https://forum.ansible.com/t/i-am-stump-need-to-remove-square-brackets/37308/1 "2022-11-06T07:03:00Z")

</div>

The Win\_powershell output variable is a list, and in your case it contains one item: the file content.  
This is very clearly stated in the module docs:

[https://docs.ansible.com/ansible/latest/collections/ansible/windows/win\_powershell\_module.html#return-output](https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_powershell_module.html#return-output)

So just pick the first item:

set\_fact:  
uuid: "{{ file\_contents.output[0] }}
