How to Build an Active Directory Penetration-Testing Lab with PowerShell

· Original article ↗

Summary

Walkthrough builds an isolated two-VM Active Directory lab on Windows Server 2019 and Windows 10, configures AD DS and AD CS, creates deliberately overprivileged accounts, and disables Defender and the firewall for testing, with a warning not to use those settings in or

Key points

  • Builds a Windows Server 2019 virtual machine and promotes it to the Domain Controller for the ignite.local forest.
  • Installs and configures Active Directory Certificate Services as an Enterprise Root CA for certificate-based testing, including ESC attack paths.
  • Creates domain users with deliberate privilege assignments, including a Domain Admin and a user in Backup Operators and Remote Management Users.
  • Joins a Windows 10 client to the domain and verifies authentication using a domain account.
  • Disables Defender real-time monitoring and Windows Firewall in the lab to avoid interfering with testing tools; the article warns not to apply these settings in production.
  • Frames the environment as a controlled lab for practicing enumeration, credential attacks, lateral movement, Kerberos attacks, and AD CS exploitation.

Article Details

Topic
Building an isolated Active Directory penetration-testing lab with VMware Workstation, Windows Server, AD CS, and a domain-joined Windows client.

MITRE ATT&CK

Vendors

Products

Tools

Related Articles