Skip to content

andreiii14/Active-Directory-and-Domain-Controller-Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Active Directory and Domain Controller Lab

Overview

  • This repository contains documentation and scripts for setting up a home lab with an Active Directory (AD) and Domain Controller (DC) using Windows Server 2019 on VirtualBox. The lab aims to simulate a corporate network environment, including the creation of 1000 users (via a powershell script) and connectivity with a Windows 10 client.

  • Here is an overview and a visualization of the Lab

overview

Lab Setup

Step 1: Virtual Machine Creation

  1. Created a VM on VirtualBox using the Server 2019 ISO.
  2. Configured the network by adding a second adapter attached to an Internal Network, assigning it an IP address.
1 1 1

Step 2: Active Directory and Domain Controller Setup

  1. Installed AD and created a domain, completing the deployment configuration by adding a new forest.
  2. Created a dedicated domain admin account during the setup.
admin user

Step 3: Routing and NAT Configuration

  1. Configured RAS/NAT via the Server Manager on the admin profile.
  2. Added Routing as a role service and enabled NAT on the Routing and Remote Access Server Setup Wizard.
RAS nat ras and nat all configured

Step 4: DHCP Server Setup

  1. Set up a DHCP server on the domain controller to allow Windows 10 clients to get IP addresses for internet access.
dhcp
  1. Used the internal NIC as the default gateway (router).
dhcp router 10 dhcp ip address setup dhcp all setup

Step 5: User Account Creation

  1. Turned off Execution Policy in PowerShell to run a script.
script unrestricted 11
  1. Used a PowerShell script to add 1000 users to the domain.
start script run script complete

Step 6: Windows 10 Client Configuration

  1. Created a new VM with Windows 10 ISO, attaching the network adapter to the Internal Network.
12
  1. Selected Windows 10 Pro to connect to the domain.
13windows pro

Verification and Testing

  1. Checked internet connectivity from the client VM using ping to www.google.com and the domain (mydomain.com), and also seeing whether the Default Gateway matches with the internal NIC used as the Router previously in Step 4.
internet connection
  1. Verified DHCP leases on the domain controller for the client VM.
15 address leases
  1. Explored Active Directory to see the list of computers in the domain.
16 AD computers
  1. Confirmed successful domain login using a sample user account (e.g., tbasilio).
17 whoami

Conclusion

This project successfully creates a simulated corporate network with Active Directory and a Domain Controller. The script automates the process of adding 1000 users, and the Windows 10 client seamlessly connects to the domain, showcasing a functional mini corporate environment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published