iTsDuStY / AD_PS

0 stars 0 forks source link

This project provides a comprehensive guide to setting up an Active Directory (AD) home lab. This lab serves as a valuable environment for skill development and learning about Windows Server and Active Directory administration. The project involves installing AD, promoting the server to a Domain Controller, configuring DNS, DHCP, RAS/NAT, populating AD with bulk users using PowerShell, and joining a client Windows 10 PC to the domain. This project is follows Josh Madakor's YouTube video: "How to Setup a Basic Home Lab Running Active Directory (Oracle VirtualBox) | Add Users w/PowerShell"

First, we need to download VirtualBox, VirtualBox Extension pack, Microsoft Server 2022, and Microsoft Windows 10.

Download and Install VirtualBox

Download VirtualBox Guest Additions

Download Windows Server 2022 ISO from Microsoft Evaluation Center

Download Windows 10 ISO from Microsoft

Create a New Virtual Machine (VM)

For this project, we are going to use two network adapters for the Server.

Start up the VM and Install Windows Server 2022

Install VirtualBox Guest Additions

Rename network adapters for clarity. Open up properties on each adapter to verify which one is the NAT adapter and which is the Internal adapter. Here we gave the NAT adapter the name "Internet" and the Internal adapter we named "X_Internal_X". 1714404086706

Configure IPv4 settings, ensuring automatic IP for Internet (Internet) adapter and static IP 172.16.0.1. Set the subnet mask as 255.255.255.0 and leave the default gateway empty. For the DNS server, we can use the same static IP (172.16.0.1) or use the loopback address 127.0.0.1 for internal (X_Internal_X) adapter. 1714405761439

Rename the PC as "DC" for easy identification by going to Start > Settings > System > About > Rename This PC. Restart. 1714404207962

Install Active Directory Domain Services (ADDS)

Create Administrative User - After restart, the login now shows MYDOMAIN\ADMINISTRATOR. Login with the password you created created earlier. 1714404439555

Install Routing and Remote Access (RAS/NAT)

Set Up DHCP Server - This will allow our client to receive an IP address in the scope that we are going to specify.

Name the new scope "172.16.0.100-200" and specify the DHCP scope. 1714404925026

Bulk User Creation with PowerShell

Create Windows 10 Pro Client VM with the Windows 10 ISO