Bootstrapping Windows nodes

Hi all :slight_smile:

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

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.

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

Reverting the version and searching the repo I found this:

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

1 Like

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

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.

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.