Active Directory & Domain Services
Understand identity central management, key structural elements, and how databases authenticate network actions.
Central Administration
No more local user accounts on every machine. Manage credentials, machines, and security rules from one single console.
Forests & Domains
The organizational hierarchy. Domains partition network components, while Forests group multiple domains under a trust tree.
Organizational Units
The administrative folders in AD used to structure users and computers, and link specific Group Policies (GPOs).
Group Policy
Define exactly what users can and cannot do on Windows clientsβpushing registry keys, scripts, and software silently.
Understanding Active Directory (Based on the Tutorial Video)
In the video "Understanding Active Directory and Group Policy" by Kevin Brown, we learn that Active Directory (AD) is essentially a database containing accounts, resources, and access permissions. The core service is called Active Directory Domain Services (AD DS).
Without AD, a network is in a Workgroup model. In a Workgroup, if a user wants to log into 5 different computers, the administrator must create 5 separate local accounts. If the user changes their password, it must be updated manually on all 5 machines. With Active Directory, users are created once in a centralized database (the NTDS.dit file), stored on a Domain Controller (DC). Authentication happens centrally, enabling Single Sign-On (SSO).
- Forest: The security boundary. Contains all domains in your organizational network.
- Domain: The logical partition. Your domain for this class will be john-doe.local.
- Domain Controller (DC): A server running Windows Server 2019 that responds to security authentication requests (logging in, checking permissions) and holds the AD database.
- Organizational Units (OUs): Sub-folders in a domain. GPOs can be linked to OUs to distribute configurations to users/computers.
β Conceptual Check
What is the name of the database file that stores all Active Directory objects (users, computer configurations, etc.) on a Domain Controller?
1. Deploy Server & Client VMs on Proxmox
Step 1We are building our laboratory in Proxmox VE. Each student will configure two virtual machines: a Windows Server 2019 VM (which will become the Domain Controller) and a Windows 10 Client VM (which will join the domain).
Provision Windows Server 2019 (Domain Controller)
- Log into your Proxmox VE Web Console.
- Click Create VM in the top-right corner.
- General: Assign a VM ID (e.g.,
201) and name itws2019-dc-doe. - OS: Select the Windows Server 2019 ISO from your local storage. Set Type to
Microsoft Windowsand version to10/2016/2019. - System: Keep defaults. Ensure
Qemu Agentis checked. - Disks: Allocate at least 50 GB storage, using standard SCSI or SATA.
- CPU: Assign at least 2 Cores (preferably 4).
- Memory: Assign at least 8192 MB (8 GB) of RAM.
- Network: Select your virtual bridge (use vmbr9999).
- Start the VM, boot into the installer, select Windows Server 2019 Standard (Desktop Experience), and complete setup by defining a secure Administrator password:
Pa$$word123.
Provision Windows 10 (Client Workstation)
- Click Create VM in Proxmox VE.
- General: Assign a VM ID (e.g.,
202) and name itwin10-client-doe. - OS: Select your Windows 10 ISO.
- Disks: Allocate at least 40 GB storage.
- CPU: Assign 2 Cores.
- Memory: Assign 8192 MB (8 GB) of RAM.
- Network: Ensure it is attached to the same network bridge (vmbr9999) as the Server. This is crucial so they can communicate!
- Complete the Windows 10 installation, skipping Microsoft accounts by choosing "I don't have internet" -> "Continue with limited setup", and create a local user account.
Configure Static IP on Windows Server 2019
A Domain Controller must have a static IP address because clients rely on it for authentication and DNS resolution. If its IP address shifts, the client machines won't be able to log in or query DNS.
- On the Server VM, click Start -> type ncpa.cpl and press Enter.
- Right-click your network interface and select Properties.
- Double-click Internet Protocol Version 4 (TCP/IPv4).
- Configure the settings:
- IP Address:
192.168.1.200 - Subnet Mask:
255.255.255.0 - Default Gateway:
192.168.1.1 - Preferred DNS Server:
127.0.0.1(Loopback address, telling the server to query itself for DNS once Active Directory is installed)
- IP Address:
2. Install Active Directory & Promote to DC
Step 2Next, we install the **Active Directory Domain Services (AD DS)** role and promote the Server 2019 machine to a Domain Controller for your domain john-doe.local.
Install AD DS Role
Open Server Manager -> click Add roles and features -> choose Role-based or feature-based installation -> select your server -> check Active Directory Domain Services and accept dependencies.
Promote to Domain Controller
Once installed, click the yellow Warning Flag icon in Server Manager -> click Promote this server to a domain controller. Select Add a new forest and enter Root domain: john-doe.local.
DSRM Password & Reboot
Set a secure password for Directory Services Restore Mode (DSRM) (e.g. Pa$$word123). Accept all other default configurations (NetBIOS name, paths). Click Install. The server will automatically reboot.
3. Configure OUs, Groups, and User Accounts
Step 3With our domain controller active, we will now build the organizational structure. We'll set up a custom **Organizational Unit (OU)**, a **Security Group**, and create a domain user account.
Method A: GUI (Active Directory Users & Computers)
- On the Server, click Tools -> Active Directory Users and Computers (ADUC).
- Right-click your domain
john-doe.local-> select New -> Organizational Unit. Name it Sales. Click OK. - Right-click the new Sales OU -> select New -> User. Set Full Name as
Test User, and logon name as jdoe. - Define their password (e.g.
Pa$$word123). Check Password never expires. - Right-click your domain (or standard Users container) -> select New -> Group. Name it Finance_Staff. Ensure Group Type is Security and Group Scope is Global.
- Right-click user jdoe -> click Properties -> select the Member Of tab -> click Add... -> type Finance_Staff -> click Check Names -> click OK -> click Apply.
Method B: Automated PowerShell Commands
Run this script inside administrative PowerShell on the DC to create the items instantly:
# Script to create OU, Group and User
π‘ OU vs. Containers
Standard containers (like Users or Computers) cannot have Group Policies linked directly to them. An **OU** (Organizational Unit) allows Group Policy Object (GPO) linking, delegation of permissions, and structured sorting.
4. Create Shared Folders & Configure Permissions
Step 4We will configure and share two folders on the Domain Controller to demonstrate **Role-Based Access Control (RBAC)**:
5. Domain Join & Deliverable Verification
Step 5We must now connect the **Windows 10 Client VM** to the domain controller and verify the setup.
Set Client Network DNS
On your Windows 10 VM, open Network Adapter Options (ncpa.cpl) -> properties of Ethernet -> IPv4 Properties. Set Preferred DNS Server to: 192.168.1.200 (the IP address of your Server 2019 DC). Leave Alternate DNS blank.
Join Domain
On Windows 10, open Settings -> System -> About -> click Advanced system settings. Select the Computer Name tab -> click Change.... Toggle from Workgroup to Domain and enter: john-doe.local. Enter the Administrator credentials when prompted, click OK, and restart the VM.
Sign In as User
At the logon screen, click Other User. Log in with user: jdoe (UPN: jdoe@john-doe.local) and the password you defined.
Test Share Access
Press Win + R -> type \\192.168.1.200 -> press Enter. Double-click Folder_A (access should be granted, verify you can save a file) and then double-click Folder_B (access should be denied).
πΈ Lab Deliverables (Take these screenshots for grading!)
- Screenshot 1: ADUC Tree Show the OU structure in ADUC, including the Sales OU and your user jdoe.
-
Screenshot 2: Folder A Shared File Creation
Show your Windows 10 VM client logged in as jdoe inside
\\192.168.1.200\Folder_Ashowing a text file successfully saved by you. - Screenshot 3: Folder B Denied Windows Dialogue Show the security error window: "Network Error: Windows cannot access \\192.168.1.200\Folder_B. Contact network administrator to request access." when logged in as jdoe.
Active Directory Dynamic Structure Tree
Visualize the objects and containment relationships in Active Directory based on your configurations. Try adding custom objects below to see how they fit into the hierarchy.