Building an Active Directory Home Lab

Home Lab
🪟 Windows Server 2019 🖧 Active Directory 🛡️ Group Policy

A self-driven home lab project where I installed Windows Server 2019, promoted it to a domain controller, and built out a full Active Directory environment — including Organizational Units, security groups, users, and Group Policy Objects — to practice real-world enterprise IT administration.

1Windows Server Setup

Installed Windows Server 2019 Evaluation inside a virtual machine as the foundation for the lab environment.

SettingValue
Operating SystemWindows Server 2019 Evaluation
Architecture64-bit (x64)
Version1809 (OS Build 17763.3650)
Windows Server installation progress screen
Windows Server installation in progress
Setting the built-in administrator password
Setting the built-in administrator password
Confirming Windows Server 2019 version details
Confirmed version: Windows Server 2019, Build 17763.3650

2Server Manager Dashboard

Server Manager is the primary management console in Windows Server. It's used to configure the server, install roles and features, monitor system status, and manage the services required for the Active Directory environment.

Server Manager dashboard overview
Server Manager dashboard on first login

Add Roles and Features Wizard

Used the wizard to install Active Directory Domain Services (AD DS), along with DHCP, DNS, and Remote Access roles required for the lab.

Select installation type step
1. Select installation type
Select destination server step
2. Select destination server
Select server roles step
3–4. Select server roles
Confirmation step
5. Confirm installation selections
Installation succeeded
6. Installation succeeded

3Promoting the Server to a Domain Controller

Configured the server as a new Active Directory forest, specifying a root domain name for the environment.

Root domain name: edlrydomain.local
Deployment configuration: Add a new forest
Deployment Configuration — Add a new forest

Paths

Specified the default locations for the AD DS database, log files, and SYSVOL folder.

AD DS database, log files, and SYSVOL paths

Domain Controller Options

Set the forest and domain functional levels to Windows Server 2016, enabled DNS server and Global Catalog, and set the Directory Services Restore Mode (DSRM) password.

DSRM Password: HomelabDirectory123!
Domain controller options configuration
Prerequisites check passed
Prerequisites check — passed
AD DS installation in progress
Installation in progress
Server restart prompt after promotion
Server automatically restarts to complete promotion

Domain Controller Login

The login screen displayed the newly created Active Directory domain, confirming the server was now operating as the domain controller for the EDLRYDOMAIN domain.

Login screen showing EDLRYDOMAIN Administrator

4Active Directory Users and Computers (ADUC)

ADUC is the primary administrative tool used to manage objects within an Active Directory domain — creating and managing user accounts, computer accounts, security groups, and Organizational Units (OUs). Used here to organize and administer the EDLRYDOMAIN domain after AD DS installation.

Active Directory Users and Computers console

Creating Organizational Units for Regions

Created top-level OUs to organize the domain by region: USA, Europe, and Asia. OUs provide a logical structure that simplifies management and allows Group Policies to be applied to specific sections of the domain.

USA, Europe, and Asia organizational units

Creating Departmental Sub-OUs

Inside each regional OU, created sub-units for Computers, Users, and Servers to separate resource types and simplify administration.

Computers, Users, and Servers sub-OUs under each region

5Security Groups and Users

Before creating accounts, reviewed the different group scopes and types available in Active Directory:

Group ScopePossible MembersNotes
UniversalAccounts from any domainUsable across the entire forest / trusting forests
GlobalAccounts from the same domainUsable in the same forest or trusting domains/forests
Domain LocalAccounts from any domain or trusted domainUsable within the same domain only
Group TypePurpose
Security GroupsAssign permissions to shared resources and user rights (e.g. Domain Admins, Finance Department access)
Distribution GroupsCreate email distribution lists to send mail to a collection of users via an email/exchange server

Created security groups and departmental accounts across all regional OUs — IT, Accounting, HR, Sales, and Management — for the USA, Europe, and Asia regions.

Sample user account — Username: edlryjob   |   Password: HomelabDirectory123!
Creating a new user account, step 1
Creating a new user account, step 2
Completed Active Directory structure with groups and users
Completed structure — OUs for USA, Europe, and Asia with their Computers, Users, Servers, and security groups
💡 Result: User and computer accounts were successfully created within the IT Organizational Unit, then the same process was repeated for Accounting, HR, Sales, and Management across all three regional OUs.

6Group Policy Management

Group Policy provides centralized administration of user and computer settings across a Windows network using Active Directory — allowing standardized configurations, security rules, software deployment, and desktop environments to be managed from a single console.

Group Policy Management console
Setting TypeApplies To
Computer ConfigurationApplies to the local computer and does not change per user. Includes Policies (cannot be changed by users — e.g. password policy, account lockout) and Preferences (can be changed by users — e.g. mapped drives, printers, shortcuts)
User ConfigurationApplies to the user's account and follows them to any computer they log into, including new machines in the future

Password Policy

Configured a new GPO to enforce strong passwords and improve account security.

PolicyValue
Minimum password length8 characters
Password complexity requirementsEnabled
Maximum password age90 days (quarterly)
Creating a new Password Policy GPO
Setting minimum password length
Enabling password complexity requirements
Setting maximum password age to 90 days

Drive Mapping

Configured a Group Policy Preference to automatically map a network drive for users — assigning a local drive letter to a remote network share so users can access centralized files as if they were local storage.

Location: \\servername\folder   |   Drive Letter: First available, starting at C:
New Drive Properties configuration
Configured drive map showing in Group Policy

Additional Security Policies

Desktop wallpaper policy setting
Prohibit access to Control Panel and PC settings
Disable removable USB storage policy
Account lockout policy settings

7Joining a Client Machine

Installed a Windows 10 virtual machine to act as a domain-joined client, allowing the Group Policies configured above to be tested against a real end-user workstation.

Windows 10 installation license terms screen

Windows Setup

Walked through the initial Windows 10 setup screens, including region and locale selection.

Windows 10 setup region selection screen

Local Account Setup

Created a local account on the client machine before joining it to the domain.

Username: pc01   |   Password: 12345678qwertY!
Setting up local username on Windows 10

Joining the Domain

Before joining the domain, configured the IP address on both the server and the client, and pointed the client's DNS server setting to the domain controller so PC01-IT-Support could locate and authenticate against the domain.

Computer Name/Domain Changes dialog joining the domain

Troubleshooting — Verifying Domain Communication

Used nslookup to confirm the client could resolve and communicate with the domain controller before attempting to join.

Command: nslookup -type=SRV _ldap._tcp.dc._msdcs.edlrydomain.local
nslookup output confirming domain controller resolution
💡 Why this matters: Confirming DNS resolution to the domain controller before joining is a standard troubleshooting step — most failed domain-join attempts trace back to a client pointing at the wrong DNS server.

Successful Domain Join

PC01-IT-Support successfully joined the EdlryDomain.local domain and the machine was restarted to apply the changes.

Welcome to the EdlryDomain.local domain confirmation
Restart required prompt to apply domain changes

Signing In With the Domain User

Signed in to the joined machine using the domain account, confirming the login worked against the EDLRYDOMAIN directory.

Sign in screen showing EDLRYDOMAIN user
Successful login as domain user edlryAD1

Confirming and Organizing the Computer Object

Verified in Active Directory Users and Computers that PC01-IT-SUPPORT now appeared as a joined computer object, then moved it out of the default Computers container and into the correct USA / Computer Organizational Unit to match the OU structure built earlier.

PC01-IT-SUPPORT computer object visible in ADUC
Moving PC01-IT-Support into the USA Computer OU
PC01-IT-Support successfully placed in the USA Computer OU

File Services, Group Policy Drive Mapping & FSRM

A follow-up session on the same lab, covering file sharing, automated drive mapping through Group Policy, and File Server Resource Manager (FSRM) for quotas and file screening.

8File Services

Set up file sharing within the Active Directory environment.

Permissions and Access Control
ReadWriteExecuteFull Control
Types of Permissions
NTFSShare
Sharing Methods
NetworkMapped

9Set Up a File Sharing

Created a folder on the Local Disk (C:) named SHARED.

SHARED folder created on Local Disk C

Opened the properties of the SHARED folder, enabled Share this Folder, clicked Add, typed domain in the object name field, then clicked Check Names.

SHARED folder properties with Advanced Sharing enabled
Select Users or Groups dialog with domain typed in and Check Names

Selected Domain Users from the matching names list, and for share permissions, selected Read only.

Domain Users selected in Select Users or Groups dialog
Read permission selected for Domain Users share permissions

Configured matching NTFS permissions on the Security tab for the SHARED folder.

NTFS Security tab permissions for SHARED folder

10Mapping the Shared Drive on Client Machines

Hostname: WIN-B0OKCQIFKRN   |   Mapped path: \\WIN-B0OKCQIFKRN\SHARED

Right-clicked This PCMap network drive. Ran hostname on the server terminal, which returned WIN-B0OKCQIFKRN, then mapped the folder to \\WIN-B0OKCQIFKRN\SHARED. Unchecked Reconnect at sign-in and finished.

This PC context menu with Map network drive option
Map Network Drive dialog blank
Map Network Drive dialog with server path filled in
Successfully connected mapped drive showing empty SHARED folder
💡 Result: The drive mapped successfully as SHARED (\\WIN-B0OKCQIFKRN) (S:) and appeared under This PC as a network location.

11Automating the Drive Map with Group Policy

Configured a Group Policy Object so the SHARED drive maps automatically for users, instead of relying on each client mapping it manually.

Created a GPO for mapped drives on the Windows Server and pointed it to the server's shared path.

Group Policy Management console with Mapped Drives GPO
New Drive Properties dialog in Group Policy Management Editor
Drive Maps preference showing created mapped drive
GPO linked to the USA Users OU

Applied the drive mapping GPO to the USA Users OU, then tested it with gpupdate /force and restarted the client PC to confirm the drive mapped automatically.

Command: gpupdate /force
gpupdate force command running in terminal

12File Server Resource Manager (FSRM)

Implemented quotas and file screening using FSRM — configuring a Quota Template and a File Screen Template to manage file storage across the organization.

Installed the File Server Resource Manager role via the Add Roles and Features Wizard.

Add Roles and Features Wizard with File Server Resource Manager selected
File Server Resource Manager console confirming successful install

Quota Management

Selected the SHARED folder and defined quota properties to set a storage limit, with an email notification threshold.

Quota path: C:\SHARED   |   Limit: 100 MB (Hard)
Create Quota dialog for C:\SHARED path
Custom quota properties defined with 100 MB limit
Add Threshold dialog configuring email notification at usage percentage

File Screening Management

File screening allows administrators to control which file types users can save on a server and to generate notifications when unauthorized files are attempted. Blocked Audio and Video Files, Compressed Files, Executable Files, Web Page Files, Image Files, and Text Files on the SHARED folder, and saved the configuration as a reusable template named SHARED.

Create File Screen dialog for C:\SHARED
File Screen Properties with blocked file groups selected
Save Custom Properties as a Template dialog named SHARED
File Screens list showing SHARED template applied to C:\SHARED
💡 Result: The SHARED folder now enforces a 100 MB quota with email alerts, and blocks unauthorized file types through the SHARED file screen template.

Key Learnings

Back to Projects