Credit goes to Josh Madakor for this lab! You can find his video here.
- VirtualBox
- Windows Server 2019 ISO
- Windows 10 ISO
- Directory service: Active Directory Domain Services (AD DS)
- PowerShell Script
Hardware
- 2048 MB
- 2 CPUs
Virtual Hard Disk
- 50 GB
Settings
- Network
- Adapter 1 > NAT
- Adapter 2 > Internal Network
- Windows Server 2019 Standard Evaluation (Desktop Experience)
- Custom: Install Windows only (advanced)
- Configure an Administrator account
- U: Administrator
- P: AdminPass
-
Go to the Network Status screen in settings and change connection properties
-
You will not have internet access because the adapter is looking for the DHCP server that we have not configured yet
-
Rename Ethernet to INTERNET
-
Rename Ethernet2 to X_INTRANET_X
- Right Click on X_INTRANET_X -> Properties
- Internet Protocol Version 4 (TCP/IP4) -> Properties -> Set the IP, Subnet mask, and DNS Server
- The server will use itself as the DNS server because installing AD automatically installs DNS
Under Server Roles check Active Directory Domain Services
-
Change the deployment option to Add new forest and name the domain
-
Click Next until you get to the Prerequisites Check an click install
-
Name the Org Unit __ADMINS
-
Click Next and set the password
-
Password: AdminPass
-
Right click on the new user -> Properties -> Member of -> Add
-
Sign out of the Administrator account an sign into Lisa Doe
- By installing RAS on the domain controller clients will be able to have access to the internet
- Click on Add roles and features
- Click next until Server Roles
- Check Remote Access
- Click next until Role Services and check the Routing box
- Click next through the rest of the wizard and Install
-
Click Tools in the top right -> Routing and remote access
-
Right click on Domain Controller -> Configure and Enable Routing an Remote Access ![]assets/20230923153013.png)
- Click on Add roles and features
- Check DHCP -> Install
- After installing DHCP click on Tools -> DHCP
- IPv4 -> New Scope
- Click next on all default options an click finish
- Configure this local server -> Disable IE Enhanced Security Configuration
- Turn OFF for Administrators and Users
- Download the PowerShell script from the requirements
-
Open names.txt and add your name to the top.
-
Run PowerShell ISE as an administrator
-
Enable the execution of all scripts on the domain controller by typing the following command in PowerShell:
Set-ExecutionPolicy Unrestricted
-
Select Yes to all
-
Change Directory to the location of the PowerShell script inside of Powershell ISE
-
Navigate back to the server manager -> Tools -> Active Directory Users and Computers
-
All the users are now added from the script
-
Search for your own name in the added Users by right clicking __Users -> Find
- Add the Windows 10 ISO to VirtualBox
- Name: CLIENT1
- Base Memory: 4096
- Processors: 2
- Disk size: 50 GB
- Settings
- Network -> Attached to Internal Network
- Start Windows 10 ISO
- Select I dont have a product key
- Windows 10 Pro
- Custom: Install Windows ONLY
- I dont have internet
- Continue with limited set up
- Account information
- Name: user
- Password: **LEAVE BLANK
- Disable all tracking settings
- Skip Cortana
-
Navigate to CMD ->
ipconfig
-
If this works then the DHCP server we set up is leasing an IP to CLIENT1!
-
Confirm by typing your Domain Admin Account
- Administrator
- AdminPass
-
Restart your computer