# win\_hostname module missing

**URL:** <https://forum.ansible.com/t/win-hostname-module-missing/29646>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [February 11, 2019, 11:15am UTC](https://forum.ansible.com/t/win-hostname-module-missing/29646 "2019-02-11T11:15:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Vinogradov](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Sergey\_Vinogradov](https://forum.ansible.com/u/Sergey_Vinogradov)\
**Post date:** [February 11, 2019, 11:15am UTC](https://forum.ansible.com/t/win-hostname-module-missing/29646/1 "2019-02-11T11:15:11Z")

</div>

Hi,  
I try to use examles for hostname change on windows machine, but it looks like the win\_hostname is missing  
[https://docs.ansible.com/ansible/latest/modules/win\_hostname\_module.html#win-hostname-module](https://docs.ansible.com/ansible/latest/modules/win_hostname_module.html#win-hostname-module)  
Is this module deprecated or should I install it (and how)?  
Thanks

---

<div class="post-metadata">

**Author:** ![Sergey\_Vinogradov](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Sergey\_Vinogradov](https://forum.ansible.com/u/Sergey_Vinogradov)\
**Post date:** [February 11, 2019, 11:18am UTC](https://forum.ansible.com/t/win-hostname-module-missing/29646/2 "2019-02-11T11:18:28Z")

</div>

For example ansible-doc gives error:  
ansible-doc win\_hostname  
[WARNING]: module win\_hostname not found in: /home/adminlocal/.ansible/plugins/modules:/usr/share/ansible/plugins/modules:/usr/lib/python2.7/site-  
packages/ansible/modules

And the ansible inself:  
ansible -i inventory.yml -m win\_hostname -a “hostname=MyNewComp” test  
TEST2 | FAILED! =\> {  
“msg”: “The module win\_hostname was not found in configured module paths. Additionally, core modules are missing. If this is a checkout, run ‘git pull --rebase’ to correct this problem.”
