How to join a windows machine to an AD domain automatically?

0

I can add any user to a windows ISO using packer and add that user to the local administrators group. The question what is the best way to automate the step of joining a newly created windows machine to the AD domain. I prefer Ansible, although don't know hot to do that using Ansible.

Edik Mkoyan

Posted 2019-11-05T13:34:38.717

Reputation: 327

We are always glad to help, but a question of this nature would probably be more appropriate within the Server Fault community.

– Run5k – 2019-11-05T14:20:47.313

I checked on meta before add this here. – Edik Mkoyan – 2019-11-05T14:48:41.797

Answers

0

I have found out that there is already an Ansible playbook for that. https://docs.ansible.com/ansible/latest/modules/win_domain_membership_module.html

Edik Mkoyan

Posted 2019-11-05T13:34:38.717

Reputation: 327