Skip to content

steven-llamas/ActiveDirectoryLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Thumbnail of Project.

Active Directory (AD) Home Lab Setup Tutorial w 1000 Users

Description

This tutorial demonstrates the process of setting up Active Directory in a home lab environment using Oracle Virtual Box Based on the tutorial by Josh Madakor. Engaging in the configuration and operation of this lab will greatly enhance your comprehension of Active Directory and Windows networking principles. If you have any inquiries, don't hesitate to reach out to me.

Languages and Utilities Used

  • PowerShell
  • Oracle Virtual Box

Environments Used

  • Windows 10 (22H2)
  • Windows Server 2019

Diagram Template of Home Lab

Diagram of Project
Diagram of Project.

This is the diagram that is going to be used to set up the two main virtual machines (VMs) for the home lab environment. The first VM will be the Domain Controller (DC), which is the sever that runs Active Directory (AD) and all its components, so we need to set it up with all the following services. The Fully Qualified Domain Name (FQDN) is the complete domain name for AD, which we will need to set up within the DC in order to have Client1 connect to the AD server. Network Address Translation (NAT) will need to be setup as well in order to have the internal Network Interface Card (NIC) comunicate with the internet NIC, so that internet access is avilable within the domain when users sign in to the domain. Lastly, Dynamic Host Configuration Protocl (DHCP) is set up so that when Clients sign on to the domain, they automaticly get leased an IP address and are immediatly connected to the Internet.


Files to Download and Install

Tutorial Portion:

Create a new VM machine by clicking on "New" in VirtualBox, to avoid confusion name VM "Domain Controller" and make sure to set "Windows 2019" as version. We Will load boot media after setting up VM.
Creating new VM for Domain Contoller. Creating new VM for Domain Contoller.

Configure the DC VM with two Network Interface Cards (NICs). One internal NIC for the Domain and the External NIC to be able to connect to the Internet on the Host Computer.
External Network Interface Card Setup. Internal Network Interface Card.

Install Windows Server 2019 on DC VM (Make sure to Select Desktop Experience), Identify the Internal (the one with no network access) & External NICs and assign IP address for internal Network Card.
Mounting Windows Server 2019 .iso file to DC VM. Selecting Desktop Experiene Windows Server 2019. Logging in to the DC for the first time. Finding and Renaming internal Network. Configuring Internal NW IP address.

Go to Server Manager then add the AD Domain services role and create the the domain (example- mydomain.com).
Opening the Server Manager in the DC. Adding AD Domain Services role. Creating a New Forest. Naming the Domain. Creating a DC Password.

Next go to the Server Manager again and add the RAT/NAT service and configure to be able to allow clients access to internet while in the domain. Make sure to select the external NIC when setting up NAT internet connection.
Adding RAT/NAT Service on the DC. Configuring which services to use. Going to the Routing and Remote Access tool. Configuring the DC's NAT routing. Making sure to select NAT so that the right configuration is set. Selecting the right NIC for the NAT serivce.

Now go back to the Server Manager yet again to set up the Dynamic Host Configuration Protocol (DHCP) on the DC based on the Diagram Specifications.
Selecting DHCP Service. Installing DHCP to AD. Configuring the DHCP server.

Download and run the PowerShell script within the DC VM to create 1000 users in AD.
Powershell add users picture List of users in AD

Create a new VM and name it (Example- Client1) and install Windows 10 (Make sure to Select Windows 10 PRO) in order to be able to use this VM to connect to our new domain. Connect the Client VM to the network, then to the domain by adding it to the System Properties.
Creating the Client VM Making sure to use the Windows 10 .iso File to mount it to. Making sure to select Windows 10 Pro Adding the client to the Domain

Login to the client machine within the domain using a domain account. As you can see the client VM shows that we are now in the domain.
Logging in to Active Directory as an Administrator.