terraform-ad-lab

Automate Active Directory lab creation on Hyper-V with Terraform.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/Greg-T8/Agent-Toolkit --skill terraform-ad-lab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-ad-lab
Source: https://github.com/Greg-T8/Agent-Toolkit/tree/main/skills/terraform-ad-lab
Command: npx skills add https://github.com/Greg-T8/Agent-Toolkit --skill terraform-ad-lab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Build and reproduce a local Active Directory lab on a Windows Hyper-V host using Terraform, automating VM creation, unattended Windows installs, and domain bootstrapping to reduce manual setup time.

Core Features & Use Cases

  • Scaffold and configure Terraform projects that deploy a DC and member servers on Hyper-V
  • Bootstrap Active Directory forest and domain joins via PowerShell Direct without network dependency
  • Enable repeatable lab environments that can be torn down and rebuilt for testing, certification prep, or education

Quick Start

Run Terraform init and apply to provision a local AD lab on a Hyper-V host.

Frequently Asked Questions about terraform-ad-lab

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a local Active Directory lab on Hyper-V using Terraform?

You can build a local Active Directory lab on Hyper-V using Terraform by automating VM creation, unattended Windows installs, and domain bootstrapping. This Skill scaffolds a Terraform project deploying a DC and member servers with unattended answer-file ISOs.

What is needed to automate an Active Directory lab environment with PowerShell Direct?

Automating an Active Directory lab environment with PowerShell Direct requires a Windows Hyper-V host, Terraform >= 1.5, the hyperv provider, Windows Server ISO images, unattended answer-file ISOs, and a PowerShell bootstrap workflow to promote the DC and join members.

Can I use Terraform to bootstrap an Active Directory forest without network dependencies?

Yes, you can use Terraform to bootstrap an Active Directory forest without network dependencies. This Skill uses PowerShell Direct to promote the DC and join member servers directly, eliminating the need for external network connectivity during domain setup.

Does this Terraform Hyper-V lab setup support repeatable environments for certification prep?

Yes, this Terraform Hyper-V lab setup supports repeatable environments for certification prep. It enables lab environments that can be completely torn down and rebuilt quickly, providing a clean state for testing or education.

What is the best way to configure unattended Windows Server installs for Hyper-V member servers?

The best way to configure unattended Windows Server installs for Hyper-V member servers is using Terraform to generate unattended answer-file ISOs. This Skill automates the creation of these ISOs to provision both the DC and member servers seamlessly.