Follow the steps below in order to configure your environment and run the script successfully.
Before running the automation, ensure you have the following:
- Three Virtual Machines (VMs) created via VMware or VirtualBox:
- 🖥️ 1x Server (Domain Controller)
- 💻 2x Workstations
Important
Choose the Standard Edition with Desktop Experience during installation.
Local Administrator Accounts:
-
Host 1:
- Username:
frankcastle
- Password:
Password1
- Username:
-
Host 2:
- Username:
peterparker
- Password:
Password1
- Username:
For Ansible to communicate with the Windows VMs, you need to enable WinRM on each one.
Important
Run the Configure_WinRM.ps1
script on each VM to enable WinRM for Ansible.
- This automation script runs on Linux.
- Windows users: Use WSL (Windows Subsystem for Linux) to run the script.
- Network: Ensure the IP addresses of your VMs are reachable from the host running the script.
Before executing the script, edit the ip_addresses.sh
file and input the IP addresses of your VMs.
With the VMs configured and the IP addresses set, execute these commands to launch the configuration:
git clone https://github.com/4renwald/tcm-peh-ad-automation.git
cd tcm-peh-ad-automation
chmod +x setup.sh
./setup.sh
Note
The entire process typically takes 5 to 10 minutes, depending on your system.