# Bootstrapping Windows nodes

**URL:** <https://forum.ansible.com/t/bootstrapping-windows-nodes/43249>\
**Category:** Get Help\
**Tags:** windows\
**Created:** [June 9, 2025, 5:57pm UTC](https://forum.ansible.com/t/bootstrapping-windows-nodes/43249 "2025-06-09T17:57:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jyanga](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jyanga/32/8108_2.png) [@jyanga](https://forum.ansible.com/u/jyanga)\
**Post date:** [June 9, 2025, 5:57pm UTC](https://forum.ansible.com/t/bootstrapping-windows-nodes/43249/1 "2025-06-09T17:57:14Z")

</div>

Hi all 🙂

I have been using the script below to bootstrap my windows nodes.

[https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1](https://github.com/ansible/ansible/blob/devel/examples/scripts/ConfigureRemotingForAnsible.ps1)

I had not noticed that this has been removed from the repo as I had made a copy of it in my environment. Since the link above no longer works, what is the best way to bootstrap my windows nodes.

I have tried using the code in the URL below but it does not seem to work.

> **[Windows Remote Management — Ansible Community Documentation](https://docs.ansible.com/ansible/latest/os_guide/windows_winrm.html)**

This came about because `netsh.exe` seems to no longer exist in my environment so I am trying to find another way to bootstrap my windows nodes.

Help.

ansible [core 2.16.14]

Thank you in advance.

Regards,  
J

---

<div class="post-metadata">

**Author:** ![bmbufalo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bmbufalo/32/295_2.png) [@bmbufalo](https://forum.ansible.com/u/bmbufalo)\
**Post date:** [June 9, 2025, 6:55pm UTC](https://forum.ansible.com/t/bootstrapping-windows-nodes/43249/2 "2025-06-09T18:55:28Z")

</div>

Reverting the version and searching the repo I found this:

> <https://github.com/ansible/ansible/blob/stable-2.15/test/lib/ansible_test/_util/target/setup/ConfigureRemotingForAnsible.ps1>

From what I remember, this was not for production use, despite how good and simple to use it was.

---

<div class="post-metadata">

**Author:** ![jyanga](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jyanga/32/8108_2.png) [@jyanga](https://forum.ansible.com/u/jyanga)\
**Post date:** [June 9, 2025, 9:53pm UTC](https://forum.ansible.com/t/bootstrapping-windows-nodes/43249/3 "2025-06-09T21:53:01Z")

</div>

@bmbufalo if this is not meant for production use, is there one that is recommended for production use?

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [June 11, 2025, 2:18pm UTC](https://forum.ansible.com/t/bootstrapping-windows-nodes/43249/4 "2025-06-11T14:18:44Z")

</div>

No, each environment is unique and has their own requirements. Using a single script led to more things being enabled or configured than most people needed/wanted.

You can continue to use this script if you want but you should avoid ever using a script from a git repo or site you don’t have control over. You never know if the script will ever change or be removed.

---

<div class="post-metadata">

**Author:** ![jyanga](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jyanga/32/8108_2.png) [@jyanga](https://forum.ansible.com/u/jyanga)\
**Post date:** [June 11, 2025, 2:53pm UTC](https://forum.ansible.com/t/bootstrapping-windows-nodes/43249/5 "2025-06-11T14:53:01Z")

</div>

Thank you @jborean. I shall avoid using the script from the repo. I would love to create my own script but what is the minimum that I will need to configure on a Windows machine for me to manage it with ansible. Per my message above, I attempted to use the sample code in the link but it didnt work for me as `win_ping` failed.
