Olwam.local VMware Workstation Windows Server 2019 Windows 10 Enterprise

Active Directory Homelab

Design, deployment, and administration of a Windows Server 2019 domain environment — Group Policy, file services, security hardening, and the real incidents encountered along the way.

Olwamuthando Majiya
IT Support Technician
September 2026

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 ControllerWindows Server 2019 Standard (Evaluation), hostname WIN-NUJ0MPC5RDE
ClientWindows 10 Enterprise (evaluation), VMware Workstation VM
Domain / ForestOlwam.local
HypervisorVMware Workstation (both VMs on a shared NAT network)
NetworkServer: 192.168.1.10 (static, DNS 127.0.0.1)  |  Client: static IP, DNS 192.168.1.10
Key RolesAD 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.

Top-level OUs
Fig 2.1 — Top-level OUs: USA, EUROPE, AFRICA
Sub-OUs
Fig 2.2 — Sub-OUs (Computers, Users, Servers) inside each region

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).

GroupDL-ItAdmins — Distribution Group (Global) — email/distribution list, no security permissions
GroupIT — Security Group (Global) — used to assign permissions and user rights
Groups
Fig 2.3 — DL-ItAdmins (distribution) and IT (security) groups
Users
Fig 2.4 — The four created domain users

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

  1. 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.
  2. Reset the evaluation clock:
    slmgr /rearm
  3. Rebooted the Domain Controller to finalize the change, restoring a full 180-day evaluation period.
slmgr output
Fig 3.1 — slmgr /dlv output: ServerStandardEval, rearm count 5
Key takeawayProactive license monitoring and command-line administration (slmgr) mirror real-world infrastructure lifecycle management: monitor compliance, maintain uptime, and act before the clock runs out.

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 PolicyScope: Domain — Min password age 90 days, min length 12, complexity enabled
Drive MappingScope: Users — Drive E: mapped to \\servername\folder
Desktop WallpaperScope: Users — Default wallpaper enforced for all users
Restrict Control PanelScope: Users — Prohibit access to Control Panel and PC settings
Disable USB StorageScope: Computers — All Removable Storage classes: deny all access
Account Lockout PolicyScope: Domain — Duration 10 min, threshold 10 attempts, reset counter 10 min
Password Policy GPO
Fig 4.1 — Password Policy GPO settings
Drive Mapping GPO
Fig 4.2 — Drive Mapping GPO: drive E mapped to \\servername\folder
Desktop Wallpaper GPO
Fig 4.3 — Desktop Wallpaper GPO (Enabled)
Restrict Control Panel GPO
Fig 4.4 — Restrict Control Panel GPO (Enabled)
Disable USB Storage
Fig 4.5 — Disable USB Storage: deny all removable storage classes
Account Lockout Policy GPO
Fig 4.6 — Account Lockout Policy GPO settings

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.

Windows 10 Enterprise VM
Fig 5.1 — Windows 10 Enterprise (Version 22H2, build 19045.6496)
Fresh client desktop
Fig 5.2 — Fresh client desktop, ready for domain join

06 Incident Reports & Remediation

6.1 Incident 1 — Administrative Policy Lockout

SymptomThe Domain Administrator suddenly received "This operation has been cancelled due to restrictions in effect on this computer" when opening Control Panel, the Settings app, and Server Manager — and the desktop background turned solid black.
Root causeWhile configuring the domain-wide Password Policy GPO, the administrative template "Prohibit access to Control Panel and PC settings" was accidentally enabled inside that same GPO under User Configuration. Because the GPO was linked at the domain root (Olwam.local), the restriction inherited down to every object — including the built-in Administrator.
Resolution
  1. Bypassed the GUI restrictions by launching the Group Policy Management Console directly from the Run dialog:
    gpmc.msc
  2. Edited the root-linked Password Policy GPO: User Configuration → Policies → Administrative Templates → Control Panel.
  3. Set "Prohibit access to Control Panel and PC settings" back to Not Configured.
  4. Forced a policy refresh, which completed successfully:
    gpupdate /force
Policy refresh
Fig 6.1 — Policy refresh completing on the server
UAC Admin Approval Mode
Fig 6.2 — Enabling UAC Admin Approval Mode for the built-in Administrator
Key takeawayKeep GPOs granular. Universal policies (like password complexity) should never contain restrictive user-environment settings. Restrictive GPOs must be linked only to lower-level sub-OUs (e.g., HR, IT) to prevent administrative lockout.

6.2 Incident 2 — Network Adapter "Permission Block" & APIPA

Phase 1 — Permission blockOpening "Change adapter options" in the Settings app on the server threw the same restriction error. Two factors collided: (1) the Restrict Control Panel and Disable USB Storage GPOs were linked at the domain root, trapping the Domain Administrator; and (2) UAC Admin Approval Mode is disabled by default for the built-in Administrator on a DC, breaking modern Settings-app links while policies are active.
FixDeleted the root-level links for the two restrictive GPOs, enabled "UAC: Admin Approval Mode for the Built-in Administrator" (secpol.msc → Local Policies → Security Options), ran gpupdate /force, and rebooted.
Phase 2 — APIPA (169.254.x.x)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.
Fix
  • 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
Phase 3 — Domain join
  1. 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
  2. Ran sysdm.cpl on the client, selected Domain, and entered Olwam.local
  3. Authenticated with the server's Administrator credentials; the machine object was created in AD and the client rebooted
Domain join confirmation
Fig 6.3 — "Welcome to the Olwam.local domain" confirmation
Network adapter troubleshooting
Fig 6.4 — Troubleshooting the network adapter settings failure
Phase 4 — ValidationSigned in as a domain user (eastcharmer) and verified the applied policies:
gpresult /r
gpresult output
Fig 6.5 — gpresult /r: applied GPOs (Drive Mapping, Desktop Wallpaper) and group membership

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.

Creating SHARED folder
Fig 7.1 — Creating the SHARED folder on the server
Adding Domain Users
Fig 7.2 — Adding Domain Users (Olwam.local\Users) to the folder permissions
Share permissions
Fig 7.3 — Share Permissions: Everyone = Read, Domain Users added

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.

Network path
Fig 7.4 — Network path \\WIN-NUJ0MPC5RDE\SHARED
Mapping drive S
Fig 7.5 — Mapping drive S on the Windows 10 client
Retrieving hostname
Fig 7.6 — Retrieving the server hostname via the hostname command
Mapped SHARED drive
Fig 7.7 — The mapped SHARED drive visible on the client

7.3 Persistent Drive Mapping via Group Policy

  1. Created a new GPO named "Mapped Drivers" in the Group Policy Objects container
  2. Configured User Configuration → Preferences → Windows Settings → Drive Maps: Action = Update, Location = \\WIN-NUJ0MPC5RDE\SHARED, Label = SHARED, drive letter S
  3. Linked the GPO to the USA → USERS OU
  4. On the client, forced the policy:
    gpupdate /force
Creating Mapped Drivers GPO
Fig 7.8 — Creating the "Mapped Drivers" GPO
Drive Maps properties
Fig 7.9 — Drive Maps item properties
Linking GPO
Fig 7.10 — Linking the GPO to the USA → USERS OU
gpupdate on client
Fig 7.11 — gpupdate /force on the client
Drive S appears
Fig 7.12 — Drive S appears automatically after policy refresh — success

08 File Server Resource Manager (FSRM)

The File Server Resource Manager feature was installed to enforce storage limits and block unauthorized file types.

Installing FSRM
Fig 8.1 — Installing File Server Resource Manager

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.

Creating custom quota
Fig 8.2 — Creating a custom quota on C:\SHARED (100 MB hard limit)
80% threshold notification
Fig 8.3 — 80% threshold with e-mail notification to administrators
Quota created
Fig 8.4 — Quota created successfully

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.

File screen properties
Fig 8.5 — File Screen properties: file groups selected to block
File screen active
Fig 8.6 — File screen created and active on C:\SHARED

09 Security Hardening (Default Domain Policy)

9.1 Password Policy

Enforce password history4 passwords remembered
Maximum password age60 days
Minimum password age1 day
Minimum password length7 characters
Password must meet complexity requirementsEnabled
Store passwords using reversible encryptionDisabled
Password policy
Fig 9.1 — Password policy aligned to a typical company baseline

9.2 Account Lockout Policy

Account lockout duration30 minutes
Account lockout threshold3 invalid logon attempts
Allow Administrator account lockoutEnabled
Reset account lockout counter after30 minutes
Account lockout settings
Fig 9.2 — Account lockout settings against brute-force attacks

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
Creating User Rights GPO
Fig 9.3 — Creating the User Rights GPO
Deny log on locally
Fig 9.4 — Deny log on locally applied to OLWAM\IT
Allow log on through RDP
Fig 9.5 — Allow log on through Remote Desktop Services = OLWAM\IT

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 /dlv and slmgr /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
Next stepsExtend the lab with a second Domain Controller for replication, DHCP on the server, a WSUS/backup strategy, and fine-grained password policies per OU.