# Using win\_feature to add multiple features does not appear to work

**URL:** <https://forum.ansible.com/t/using-win-feature-to-add-multiple-features-does-not-appear-to-work/17788>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [March 19, 2015, 2:24pm UTC](https://forum.ansible.com/t/using-win-feature-to-add-multiple-features-does-not-appear-to-work/17788 "2015-03-19T14:24:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ian\_Clegg](https://avatars.discourse-cdn.com/v4/letter/i/6bbea6/32.png) [@Ian\_Clegg](https://forum.ansible.com/u/Ian_Clegg)\
**Post date:** [March 19, 2015, 2:24pm UTC](https://forum.ansible.com/t/using-win-feature-to-add-multiple-features-does-not-appear-to-work/17788/1 "2015-03-19T14:24:57Z")

</div>

Hi all,

According to the documentation it should be possible to install multiple windows features at once by comma separating them using the win\_feature module:

[http://docs.ansible.com/win\_feature\_module.htm](http://docs.ansible.com/win_feature_module.htm)  
$ ansible -i hosts -m win\_feature -a “name=Web-Server,Web-Common-Http” all

Initially it fails with:

SERVER2008R2 | FAILED \>\> {

“failed”: true,  
“msg”: “A parameter cannot be found that matches parameter name ‘IncludeManagementTools’.”  
}

Ok, so Dimitri found this is fixed in the latest devel, so lets patch with the latest:[https://github.com/ansible/ansible-modules-core/blob/devel/windows/win\_feature.ps1](https://github.com/ansible/ansible-modules-core/blob/devel/windows/win_feature.ps1)

Now we get:

SERVER2008R2 | FAILED \>\> {  
“changed”: false,  
“exitcode”: “InvalidArgs”,  
“failed”: true,  
“feature\_result”: ,  
“msg”: “Failed to add feature”,  
“restart\_needed”: false,  
“success”: false  
}

I can install each windows feature individually with this module, but put them in a comma separated list (as indicated by the documentation) and it fails.  
Is this the ability to install multiple windows features at once a documentation error, or there a bug here?

Thanks  
Ian

---

<div class="post-metadata">

**Author:** ![Ian\_Clegg](https://avatars.discourse-cdn.com/v4/letter/i/6bbea6/32.png) [@Ian\_Clegg](https://forum.ansible.com/u/Ian_Clegg)\
**Post date:** [March 20, 2015, 10:52am UTC](https://forum.ansible.com/t/using-win-feature-to-add-multiple-features-does-not-appear-to-work/17788/2 "2015-03-20T10:52:41Z")

</div>

On inspection, and assuming the documentation is correct, this is a bug:  
submitted PR 974 to ansible-modules-core
