# reconfigure winrm via ansible?

**URL:** <https://forum.ansible.com/t/reconfigure-winrm-via-ansible/22614>\
**Category:** Ansible Project\
**Created:** [September 22, 2016, 10:24am UTC](https://forum.ansible.com/t/reconfigure-winrm-via-ansible/22614 "2016-09-22T10:24:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [September 22, 2016, 10:24am UTC](https://forum.ansible.com/t/reconfigure-winrm-via-ansible/22614/1 "2016-09-22T10:24:15Z")

</div>

Hi,

Has anyone managed to successfully reconfigure winrm remotely via a playbook? I need to up some timeouts and increase the MaxMemoryPerShellMB

I know that reconfiguring winrm is one of the things that is specifically disallowed over winrm remoting, but I imagine a scheduled task could do it. I’m aware you also have to restart winrm, but in my case I could happily wait through a win\_reboot. Reconfiguring it manually via RDP is not really an option - too many servers to change!

Many thanks,

Jon

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [September 22, 2016, 2:57pm UTC](https://forum.ansible.com/t/reconfigure-winrm-via-ansible/22614/2 "2016-09-22T14:57:23Z")

</div>

Well it turns out you can. Here’s a hacky playbook to tweak the timeout

`
