01 Project Overview
This document describes the design, build, and operation of a Windows Server 2019 Active Directory homelab. The lab simulates a small multi-site enterprise environment with a single Domain Controller (Olwam.local), regional organizational units, domain users and groups, Group Policy management, file services with quotas and file screening, and a Windows 10 Enterprise client joined to the domain.
Several real-world incidents were encountered and resolved along the way — evaluation license expiration, a Group Policy misconfiguration that locked out the Domain Administrator, APIPA networking issues, and virtual network segmentation between the VMs. Each incident is documented below with root cause analysis and remediation steps.
Lab Inventory
| Domain Controller | Windows Server 2019 Standard (Evaluation), hostname WIN-NUJ0MPC5RDE |
|---|---|
| Client | Windows 10 Enterprise (evaluation), VMware Workstation VM |
| Domain / Forest | Olwam.local |
| Hypervisor | VMware Workstation (both VMs on a shared NAT network) |
| Network | Server: 192.168.1.10 (static, DNS 127.0.0.1) | Client: static IP, DNS 192.168.1.10 |
| Key Roles | AD DS, DNS, File Server + File Server Resource Manager (FSRM) |
02 Active Directory Structure
2.1 Organizational Units
Top-level OUs were created for three regions — Africa, Europe, and USA — each containing Users, Computers, and Servers sub-OUs. Department OUs (HR, IT, JSS) and a GP-TEST OU were also created for policy testing.
2.2 Groups and Users
Two groups were created in the USA OU to demonstrate both Active Directory group types, followed by four domain user accounts (East, North, South, and West Charmer).
| Group | DL-ItAdmins — Distribution Group (Global) — email/distribution list, no security permissions |
|---|---|
| Group | IT — Security Group (Global) — used to assign permissions and user rights |
03 License Lifecycle Management
Objective & Challenge
The Windows Server 2019 evaluation license was approaching expiration with 38 days remaining. Left unmanaged, the Windows License Monitoring Service (WLMS) would trigger hard shutdowns every 60 minutes, disrupting domain authentication, client connectivity, and lab operations.
Resolution Steps
- Audited the licensing state with the Software Licensing Management Tool:
slmgr /dlv
This displayed the Windows Script Host diagnostics, confirming the evaluation channel and the remaining rearm count. - Reset the evaluation clock:
slmgr /rearm
- Rebooted the Domain Controller to finalize the change, restoring a full 180-day evaluation period.
04 Group Policy Objects
Six GPOs were created and configured as summarised below. Link-placement lessons learned from two of them are covered in Section 6.
| Password Policy | Scope: Domain — Min password age 90 days, min length 12, complexity enabled |
|---|---|
| Drive Mapping | Scope: Users — Drive E: mapped to \\servername\folder |
| Desktop Wallpaper | Scope: Users — Default wallpaper enforced for all users |
| Restrict Control Panel | Scope: Users — Prohibit access to Control Panel and PC settings |
| Disable USB Storage | Scope: Computers — All Removable Storage classes: deny all access |
| Account Lockout Policy | Scope: Domain — Duration 10 min, threshold 10 attempts, reset counter 10 min |
05 Windows 10 Client Deployment
A clean Windows 10 Enterprise VM was provisioned in VMware Workstation as a managed endpoint for domain onboarding and Group Policy deployment.
06 Incident Reports & Remediation
6.1 Incident 1 — Administrative Policy Lockout
- Bypassed the GUI restrictions by launching the Group Policy Management Console directly from the Run dialog:
gpmc.msc
- Edited the root-linked Password Policy GPO: User Configuration → Policies → Administrative Templates → Control Panel.
- Set "Prohibit access to Control Panel and PC settings" back to Not Configured.
- Forced a policy refresh, which completed successfully:
gpupdate /force
6.2 Incident 2 — Network Adapter "Permission Block" & APIPA
gpupdate /force, and rebooted.ipconfig showed an autoconfiguration address (169.254.40.250) and pings from the Windows 10 client returned "Destination host unreachable." Root cause: the server VM was in VMware Bridged mode while the client was on NAT, placing them on separate virtual networks — and the server was set to DHCP with no reachable DHCP server.- Assigned a static IP via
ncpa.cpl: 192.168.1.10 / 255.255.255.0, Preferred DNS 127.0.0.1, no default gateway (isolated lab) - Switched both VMs to the same NAT network in VMware Workstation
- Disabled Windows Defender Firewall on all three profiles (
firewall.cpl) for lab connectivity - Result: ping 192.168.1.10 from the client returned 4 successful responses, 0% packet loss
- Set a static IP on the Windows 10 client with Preferred DNS = 192.168.1.10 — the critical step that lets the client discover Olwam.local
- Ran
sysdm.cplon the client, selected Domain, and entered Olwam.local - Authenticated with the server's Administrator credentials; the machine object was created in AD and the client rebooted
gpresult /r
07 File Services, Share Permissions & Drive Mapping
7.1 Creating the Shared Folder
A folder named SHARED was created on the server's C: drive. Share and NTFS permissions were configured so that Domain Users can read the folder across the network: Share Permissions grant Everyone Read access, and Domain Users were added explicitly.
7.2 Manual Drive Mapping (Non-Persistent)
From the Windows 10 client, the share was mapped manually via Map Network Drive using the server hostname (retrieved with the hostname command), assigned drive letter S. This works but is not persistent for daily use — hence the GPO-based mapping that follows.
7.3 Persistent Drive Mapping via Group Policy
- Created a new GPO named "Mapped Drivers" in the Group Policy Objects container
- Configured User Configuration → Preferences → Windows Settings → Drive Maps: Action = Update, Location = \\WIN-NUJ0MPC5RDE\SHARED, Label = SHARED, drive letter S
- Linked the GPO to the USA → USERS OU
- On the client, forced the policy:
gpupdate /force
08 File Server Resource Manager (FSRM)
The File Server Resource Manager feature was installed to enforce storage limits and block unauthorized file types.
8.1 Quotas
A custom hard quota was created on C:\SHARED (limit 100 MB), with a notification threshold at 80% and an email alert configured to notify administrators as usage approaches the limit.
8.2 File Screening
A file screen was applied to C:\SHARED using Active screening ("Do not allow users to save unauthorized files") with the Block Audio and Video Files template — blocking audio/video, compressed, executable, and image files to preserve disk space.
09 Security Hardening (Default Domain Policy)
9.1 Password Policy
| Enforce password history | 4 passwords remembered |
|---|---|
| Maximum password age | 60 days |
| Minimum password age | 1 day |
| Minimum password length | 7 characters |
| Password must meet complexity requirements | Enabled |
| Store passwords using reversible encryption | Disabled |
9.2 Account Lockout Policy
| Account lockout duration | 30 minutes |
|---|---|
| Account lockout threshold | 3 invalid logon attempts |
| Allow Administrator account lockout | Enabled |
| Reset account lockout counter after | 30 minutes |
9.3 User Rights Assignment
A GPO named "User Rights" was created to demonstrate rights-based access control:
- "Deny log on locally" — applied to the IT group (OLWAM\IT): IT staff cannot log on interactively at machines where the GPO applies
- "Allow log on through Remote Desktop Services" — applied to OLWAM\IT: IT staff administer systems via RDP only
10 Summary & Lessons Learned
- Designed a multi-region AD structure (Africa, Europe, USA) with Users/Computers/Servers sub-OUs, both group types, and test users
- Managed the Windows Server evaluation license lifecycle with
slmgr /dlvandslmgr /rearm(180-day reset) - Deployed six functional GPOs covering passwords, lockout, drive mapping, wallpaper, USB blocking, and Control Panel restrictions
- Diagnosed and resolved a self-inflicted Domain Administrator lockout — the classic lesson in GPO granularity and link placement
- Built a functioning two-VM network (static IPs, DNS pointed at the DC, unified NAT mode, firewall rules) and joined Windows 10 to Olwam.local
- Delivered file services end-to-end: NTFS/share permissions, persistent GPO drive mapping, FSRM quotas with alerts, and file screening
- Applied security baselines (password policy, lockout thresholds, user rights) mirroring real enterprise standards