terraform-ad-lab - Build a Local Active Directory Lab
Scaffolds Terraform modules, unattended Windows installation files, and PowerShell bootstrap scripts for an Active Directory lab on a local Hyper-V host.
Tags
Updated: 2026-10-05Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Scaffold Terraform project
- Configure Hyper-V provider
- Create domain controller VM
- Create member server VMs
- Create unattended install files
- Bootstrap Active Directory forest
- Join servers to domain
Inputs
- Lab or domain name
- Windows Server installation ISO
- Answer-file ISOs
- Hyper-V host configuration
- Virtual switch names
- Hyper-V credentials
- VM and domain settings
Outputs
- Terraform project files
- PowerShell bootstrap script
- Unattended installation files
- Domain controller VM
- Member server VMs
- Active Directory forest
- Domain-joined servers
Requirements
- Windows 10/11 Pro or Windows Server
- Enabled Hyper-V role
- Terraform >= 1.5.0
- PowerShell 7+
- Hyper-V Internal switch
- Configured WinRM access
- oscdimg or mkisofs
- taliesins/hyperv provider ~> 1.2.0
