A from-scratch Windows Server 2025 Active Directory environment, built on two virtual machines to learn and demonstrate enterprise identity, access control, and endpoint-hardening skills — the way a real small business would run it.
This project is a complete Active Directory domain I built and hardened from nothing. It models a small company ("Corp") with a domain controller, a joined workstation, departments, employees, security groups, and layered policies — then applies least privilege and defense in depth on top: tiered admin accounts, delegated help‑desk rights, a department‑restricted file share, Windows LAPS, the Protected Users group, and security audit logging.
Everything was provisioned the way real administrators do it — with PowerShell — so the scripts in this repo reproduce the environment end to end.
Why I built it: most "I know Active Directory" claims mean coursework. This is the hands‑on version — standing the environment up, breaking it, debugging it, and hardening it.
flowchart LR
subgraph HOME["Home network — 192.168.4.0/24"]
DC["DC01 — Domain Controller<br/>Windows Server 2025<br/>192.168.4.250<br/>AD DS · DNS · domain corp.internal"]
WS["WS01 — Workstation<br/>Windows 11<br/>192.168.4.82<br/>Domain-joined client"]
DC <-->|"Kerberos · LDAP · DNS · Group Policy"| WS
end
| Role | Host | OS | Address | Runs on |
|---|---|---|---|---|
| Domain controller | DC01 |
Windows Server 2025 | 192.168.4.250 (static) |
VirtualBox |
| Workstation | WS01 |
Windows 11 | 192.168.4.82 (DHCP) |
UTM (Apple Silicon) |
- Domain:
corp.internal(NetBIOSCORP) - The two VMs run on separate physical machines and communicate over the home LAN, exactly like two office computers.
| Capability | How it's shown in this lab |
|---|---|
| Active Directory administration | Forest/domain creation, DNS, Group Policy, OU design |
| Account management | 11 users across 4 departments, security groups, offboarding a disabled user — all scripted |
| Password & lockout policy | Domain default policy plus a fine‑grained policy (PSO) with stricter rules for admins |
| Least‑privilege access control | Separate tiered admin account; help‑desk delegated only password resets; department‑only file share |
| Access‑control validation | Positive and negative tests proving the help desk can reset a user but not create users or touch admins |
| Endpoint hardening | Windows LAPS — unique, encrypted, auto‑rotating local‑admin passwords stored in AD |
| Credential protection | Protected Users group applied to the privileged account |
| Security monitoring | Audit policy for logon, credential validation, and account‑management events (4624/4625/4740) |
Each stage has a script in /scripts and a screenshot in /screenshots.
1 · Domain controller & forest — 01-promote-domain-controller.ps1
Promoted a clean Windows Server to a domain controller, creating the corp.internal forest and its integrated DNS — the "brain" every other machine authenticates against.
2 · Organizational structure — 02-build-corp-structure.ps1
Built the company: an OU hierarchy (departments as folders), 11 employee accounts across Tax, Finance, HR, and IT, and SG-* security groups. Also practiced offboarding — disabling a departed employee.
3 · Password & lockout policies — 03-password-policies.ps1
Set a company‑wide password and lockout policy, then layered a fine‑grained password policy (PSO-Admins) that enforces tougher rules (20‑character minimum, lockout after 3 attempts) on privileged accounts only.
4 · Access control & least privilege — 04-access-control.ps1
Created a separate admin account (so a phished everyday account can't own the domain), delegated the help‑desk group the single right to reset user passwords, and stood up an SMB + NTFS file share openable only by the Tax department. Delegation was verified with positive/negative access tests.
5 · Identity protection — 05-identity-protection-server.ps1 + 05b-laps-client-config.ps1
Deployed Windows LAPS (schema prep + permissions on the server; policy + processing on the client) so every machine gets a unique, encrypted, self‑rotating local‑admin password in AD. Added the admin account to Protected Users for credential‑theft resistance.
6 · Security auditing — 06-audit-policy.ps1
Enabled advanced audit policy for logon, Kerberos/credential validation, and account‑management events, so authentication failures and lockouts leave an investigable trail.
active-directory-home-lab/
├── README.md
├── LICENSE
├── .gitignore
├── scripts/
│ ├── 01-promote-domain-controller.ps1
│ ├── 02-build-corp-structure.ps1
│ ├── 03-password-policies.ps1
│ ├── 04-access-control.ps1
│ ├── 05-identity-protection-server.ps1
│ ├── 05b-laps-client-config.ps1
│ └── 06-audit-policy.ps1
└── screenshots/
└── README.md (which images to add + redaction checklist)
Prerequisites: a Windows Server 2025 VM (the DC) and a Windows 11 VM (the client), on the same network.
- On the server, run scripts 01 → 06 in order (PowerShell as Administrator). Script
01reboots the machine when it finishes promoting the DC. - Join the Windows 11 client to
corp.internal, then run05b-laps-client-config.ps1on the client. - Scripts prompt for any passwords at runtime — nothing sensitive is stored in the files.
Values such as the domain name, IP addresses, and user list are defined at the top of each script; adjust them to your own environment.
This is a lab, but it's written with production habits:
- No secrets are committed. Passwords are entered at runtime via
Read-Host -AsSecureString, never hard‑coded. - No LAPS password output, real credentials, or public IP addresses appear in this repo. Screenshots are redacted before being added (see
screenshots/README.md). Private192.168.x.xaddresses are shown intentionally.
- Detection & incident response (in progress) — simulate failed‑logon and account‑lockout activity, investigate it in the Windows Security log (events 4625 and 4740), determine root cause, and write a one‑page incident report.
- Cloud identity (optional) — a Microsoft Entra ID tenant with cloud users and MFA.
Manjot Singh — B.S. Computer Science (Cybersecurity), Bowling Green State University LinkedIn · GitHub