# Windows update by ansible

**URL:** <https://forum.ansible.com/t/windows-update-by-ansible/33415>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [July 16, 2020, 7:16am UTC](https://forum.ansible.com/t/windows-update-by-ansible/33415 "2020-07-16T07:16:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hit\_d3](https://avatars.discourse-cdn.com/v4/letter/h/e495f1/32.png) [@hit\_d3](https://forum.ansible.com/u/hit_d3)\
**Post date:** [July 16, 2020, 7:16am UTC](https://forum.ansible.com/t/windows-update-by-ansible/33415/1 "2020-07-16T07:16:06Z")

</div>

Hello

I have one of goals to solve a problem by ansible.

My organization have thousands of WIN10 PCs. However, we have NOT updated WIN10 PCs to recent update.  
We are asking people to do updating. However, we have already known that there are a lot of machines which have not been updated by an expensive client software.  
If we use the tool to do update. The a lot of cost will be taken.

So, we found that windows have winRM tech. so, I wrote inventory.ini as follows;

`

[test\_servers]  
#localhost  
s12345

#localhost ansible\_connection=local  
s12355 ansible\_connection=winrm

[hostvars]  
ansible\_user=\*\*\*\*\*\*  
ansible\_password=\*\*\*\*\*\*  
ansible\_port=5986  
ansible\_connection=winrm  
ansible\_winrm\_server\_cert\_validation=ignore

`

I run as follows;

`ansible test_servers -i inventory.ini -m ping`

The result is as follows;  
`

[WARNING]: Unhandled error in Python interpreter discovery for host s12345: ssl: auth method ssl requires a username  
s12345 | UNREACHABLE! =\> {  
“changed”: false,  
“msg”: “ssl: auth method ssl requires a username”,  
“unreachable”: true

`

I read a book;  
The Linux use must be registered to Win10 Administrator.  
According to the comment, I understood that condition.

Although the Linux machine will be registered, the windows PCs are in a domain. The domain system will ask to change password every 90 days.

The PCs are NOT server. So, we can not  
How should I do to close the goal.

Kind Regard

---

<div class="post-metadata">

**Author:** ![Leandro\_Scardua](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@Leandro\_Scardua](https://forum.ansible.com/u/Leandro_Scardua)\
**Post date:** [July 16, 2020, 1:02pm UTC](https://forum.ansible.com/t/windows-update-by-ansible/33415/2 "2020-07-16T13:02:46Z")

</div>

Hi There,

You`re using the wrong module here.  
ansible test\_servers -i inventory.ini -m ping

The correct module : win\_ping

[https://docs.ansible.com/ansible/latest/modules/win\_ping\_module.html](https://docs.ansible.com/ansible/latest/modules/win_ping_module.html)
