New to PowerShell? Read the PowerShell article
PowerShell is not just a scripting language. It is a direct interface to the Windows operating system, the .NET framework, COM objects, WMI, Active Directory, the registry, and the Win32 API. Every modern Windows host ships with it. Every domain controller speaks its language. Every EDR vendor fears what it can do. Across thirteen chapters, you will conduct a single, continuous penetration test against Meridian Financial Group — a fictional mid-market financial services firm with a realistic Windows enterprise environment: Active Directory forests, IIS web applications, SQL Server databases, file shares, Exchange-style mail, and endpoint detection. You start with nothing but a PowerShell prompt and finish with domain admin, crown jewels exfiltrated, and a professional pentest report.
In this 2nd edition, I'm going to be working with you on a single app called OrderDesk. We'll build its inventory, roles and secrets, and then we'll patch its servers, provision its cloud resources and deploy it to Kubernetes. Later, we'll watch it with Prometheus, heal it with Event-Driven Ansible and diagnose its failures with playbooks that collect evidence in seconds. Then, in the last few chapters, we'll start inviting AI agents through tools and MCP servers, while approvals and check mode make sure that everyone keeps control of the decisions. You don't need to be a pro programmer to follow along.
“Guns. Lots of guns.” — Neo, The Matrix (1999)Every domain has its weaknesses. Every privilege has a path.Go inside Active Directory with a practical, 100-page field manual featuring six phases of penetration testing, real-world attack techniques, actionable commands, and defensive insights.Know the domain. Understand the attack paths. Master the methodology.
Take control of Windows Server automation from script to production. This practical guide shows you how to build secure, scalable infrastructure with PowerShell, DSC, Terraform and CI/CD. Learn proven patterns, avoid costly mistakes and tackle real-world deployment, security, monitoring and troubleshooting challenges with working code you can put to use.