sca-server-vm-setup

Guides learners through building a Windows Server 2022 domain controller with Active Directory.

2|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/jay-steenbergen/MSSAMentorAgent --skill sca-server-vm-setup-jay-steenbergen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sca-server-vm-setup
Source: https://github.com/jay-steenbergen/MSSAMentorAgent/tree/main/.github/skills/tracks/server-cloud-admin/sca-server-vm-setup
Command: npx skills add https://github.com/jay-steenbergen/MSSAMentorAgent --skill sca-server-vm-setup-jay-steenbergen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Learners in the Server & Cloud Administration track often struggle to go from zero infrastructure to a working Active Directory lab. This Skill provides a structured, phase-by-phase project that walks them through creating a Windows Server 2022 VM, installing the AD DS role, and promoting it to the first domain controller of a new forest. ## Core Features & Use Cases - Dual deployment paths: Supports both local Hyper-V (Pro/Enterprise Windows) and Azure VM deployment, letting the mentor pick based on the learner's hardware and budget. - Five guided phases: Covers Hyper-V/Azure VM creation, initial OS configuration (static IP, rename, updates), AD DS role installation, forest promotion with Install-ADDSForest, and baseline OU structure creation. - Concept teaching built in: Each phase names key concepts out loud (forest, domain, OU, DC, DNS SRV records, DSRM password) and includes after-action prompts plus common gotchas. - Use Case: A veteran learner with a Windows 11 Pro laptop follows the Hyper-V path to build DC01 in the mssa.lab domain, ending with a working DNS-resolvable domain controller ready for the Group Policy project. ## Quick Start Ask the mentor to start the sca-server-vm-setup project and walk you through building your first Windows Server domain controller step by step.

Frequently Asked Questions about sca-server-vm-setup

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

FAQPage Schema
How do I set up a Windows Server domain controller in a lab?

Create a Windows Server 2022 VM in Hyper-V or Azure, assign a static IP with DNS pointing to 127.0.0.1, install the AD DS role with Install-WindowsFeature, then run Install-ADDSForest to promote it to the first DC of a new forest like mssa.lab.

Should I use Hyper-V or Azure VM for an Active Directory lab?

Hyper-V is free and fast for iteration but requires Windows Pro/Enterprise with virtualization enabled in BIOS. Azure VMs work on any machine including Home edition but cost roughly $3-5 per day if left running, so deallocate them after each session.

Why does DCpromo fail with DNS or SRV record errors?

Promotion fails when the server's DNS points to a public resolver like 8.8.8.8 instead of itself. Set the DNS client address to 127.0.0.1 before running Install-ADDSForest, since the DC becomes the authoritative DNS server for the domain.

Can I rename a domain controller after promotion?

Renaming a DC after promotion is painful and involves removing it from the domain and re-promoting. Rename the computer with Rename-Computer before running Install-ADDSForest, while the change is still cheap.

What is the DSRM password used for in Active Directory?

The Directory Services Restore Mode password is a separate safe-mode credential used when booting a DC into recovery mode, such as restoring AD from backup. It is intentionally different from the domain admin password, and losing it sharply narrows recovery options.