In the last article, we have setup and configured Windows Server 2019 in our AD Lab. In this article we will configure DHCP Server and setup Windows 10 VM and add it to the AD Lab network.
- Part 1 – Overview and Network Configuration.
- Part 2 – Installing pfSense Firewall on Virtual Machine.
- Part 3 – Setup Kali Linux on Virtual Machine.
- Part 4 – Configuring the pfSense Firewall.
- Part 5 Active Directory Forest Setup.
Table of contents
DHCP Post Installation Configuration.
Open Server Manager and select the Flag Icon on the top right hand side and select Complete DHCP Configuration.
![Complete DHCP Config](https://aashu.co.in/wp-content/uploads/2024/05/Complete-DHCP-Configuration-1024x375.png)
In the Authorization section, click on Commit.
![DHCP post installation Authorize](https://aashu.co.in/wp-content/uploads/2024/05/DHCP-authorize.png)
Click on the Close button to complete the DHCP post installation configuration.
DHCP Configuration.
Open the Server Manager and select Tools and then select DHCP.
![tools DHCP](https://aashu.co.in/wp-content/uploads/2024/05/DHCP-tools-1024x336.png)
Click on the dropdown for the DHCP Server (DC1.ad.lab) and right click on the ipv4 section and select New Scope.
![DHCP New Scope](https://aashu.co.in/wp-content/uploads/2024/05/new-scope.png)
Click next on the DHCP Setup Wizard. Enter the Name and Description of the new DHCP Scope.
![name and description of new dhcp scope](https://aashu.co.in/wp-content/uploads/2024/05/name-and-description-of-new-DHCP-scope.png)
In the IP address range section, provide the start and end ip address for new DHCP scope.
- Start IP address: 10.0.3.100
- End IP address: 10.0.3.200
- Length: 24
- Subnet mask: 255.255.255.0
![DCHP ip address range](https://aashu.co.in/wp-content/uploads/2024/05/DCHP-ip-address-range.png)
Press next on the add exclusion and delay section as we do not have any ip address to exclude between 10.0.3.100 and 10.0.3.200.
![DHCP exclusion](https://aashu.co.in/wp-content/uploads/2024/05/add-exlusion.png)
Select the defaults (8 Days) in the lease duration section.
![DHCP lease duration](https://aashu.co.in/wp-content/uploads/2024/05/dhcp-lease-duration.png)
In the Configure DHCP Options section select yes, I want to configure these options now.
![DHCP Options](https://aashu.co.in/wp-content/uploads/2024/05/DHCP-Options.png)
On the Router (Default Gateway) section, use the IP address 10.0.3.1 and press add button.
![Default Gateway in DHCP](https://aashu.co.in/wp-content/uploads/2024/05/Router-config.png)
On the Domain Name and DNS Server section select next.
![Domain Name and DNS Server](https://aashu.co.in/wp-content/uploads/2024/05/Domain-name-and-DNS-Server.png)
On the WINS Server section, select next.
On the Activate Scope section, select Yes, I want to activate this scope now.
![Activate Scope](https://aashu.co.in/wp-content/uploads/2024/05/Activate-Scope.png)
Click on Finish to complete the Setup.
Windows 10 Virtual Machine.
Now we will start the installation and configuration of Windows 10 VM on Hyper-V.
Download Windows 10 ISO File.
Navigate to the link Microsoft Evaluation Center, select the Windows dropdown and then select Windows 10 Enterprise.
![](https://aashu.co.in/wp-content/uploads/2024/05/Download-Windows-10-SIO-1024x165.png)
On the next page, select Download the ISO – Enterprise. Fill out the necessary information and select Download Now.
![Download Windows 10 ISO](https://aashu.co.in/wp-content/uploads/2024/05/Download-ISO-Enterprise-1024x300.png)
Once you get to the download page, Select 64 bit and Select language of your choice and Download the ISO file.
![Language and Version](https://aashu.co.in/wp-content/uploads/2024/05/Language-and-Version-1024x459.png)
Create Windows 10 VM.
Open the Hyper-V Manager and Click New > Virtual Machine from the Actions list.
![New VM](https://aashu.co.in/wp-content/uploads/2024/05/new-VM-1024x292.png)
In Specify Name and Location step, Enter a Name for the virtual machine as Windows 10 VM A
Select another location on disk to store the VM data (Optional).
![Specify name and location](https://aashu.co.in/wp-content/uploads/2024/05/specify-name-and-location-1.png)
In the Specify Generation step, Select the appropriate virtual machine generation: Generation 2.
In the Assign Memory step, Please add enough RAM to meet the requirements of this environment. 4 GB RAM or more is better. Make sure you select “use dynamic memory for this virtual machine“.
In the Configure Networking step, Select AD Lab from Connection drop-down menu.
In the Connect Virtual Hard Disk step, Select Create a virtual hard disk and assign 50 GB for the VM disk.
In the Installation Options step, Select Install an operating system from a bootable image file and Browse to the Windows 10 ISO image.
Click Finish if all of the information is correct.
Install Windows 10 OS on VM.
Open Hyper-V Manager and start the Windows 10 VM A.
Select appropriate Language to install, Time and currency format and Keyboard or input method and then hit Next.
![Windows Setup 1](https://aashu.co.in/wp-content/uploads/2024/05/windows-setup-1.png)
Click Install now and Accept the Applicable Notice and License Terms.
At the time of choosing installation method Select Custom: Install Windows only (advanced).
At the time of creating Drive, select new, type the size of the Drive you want to create and then select apply –> ok and hit next.
![Create Disk](https://aashu.co.in/wp-content/uploads/2024/05/create-disk.png)
Wait for the installation to complete and select the language and keyboard layout of your choice.
Skip the adding of second keyboard layout.
On the next step, select I don’t have internet.
![Network Connection](https://aashu.co.in/wp-content/uploads/2024/05/network-connection-1024x843.png)
On the connect to internet step, select Continue with limited setup.
![Connect to the internet](https://aashu.co.in/wp-content/uploads/2024/05/connect-to-the-internet1-1024x843.png)
At this point, you can use any username to create a local account to login into the machine.
![local User](https://aashu.co.in/wp-content/uploads/2024/05/local-user-1024x843.png)
![Local Password](https://aashu.co.in/wp-content/uploads/2024/05/local-password-1024x843.png)
Answer all the 3 security questions and please note down the answers for future use.
![Security Question](https://aashu.co.in/wp-content/uploads/2024/05/security-questions-1024x843.png)
Disable all the options in the privacy settings section and select Accept.
![Privacy Settings](https://aashu.co.in/wp-content/uploads/2024/05/privacy-settings-1024x843.png)
Select Not Now for Cortana.
![cortana](https://aashu.co.in/wp-content/uploads/2024/05/cortana-1024x843.png)
Wait for the windows to setup.
![setting up windows](https://aashu.co.in/wp-content/uploads/2024/05/setting-up-windows1-1024x843.png)
Connect Windows 10 Machine to Windows Server 2019.
Login into the Window 10 VM using the local account.
Open Settings –> Accounts –> Access work or school and select Connect
![access work or school](https://aashu.co.in/wp-content/uploads/2024/05/access-work-or-school.png)
Select the option, Join this device to the local Active Directory Domain.
![Setup Work or School Account](https://aashu.co.in/wp-content/uploads/2024/05/setup-work-or-school.png)
When asked to join a domain, type the domain name as ad.lab and hit next.
![join a domain](https://aashu.co.in/wp-content/uploads/2024/05/join-a-domain.png)
Use the Admin username and password of the Windows Server 2019 for verification.
![domain cred](https://aashu.co.in/wp-content/uploads/2024/05/domain-cred.png)
After clicking on OK in the above step, use the details as User Account: Test_User_One and Account Type: Standard User.
![ad an account](https://aashu.co.in/wp-content/uploads/2024/05/add-an-account.png)
Restart the machine and you will get prompt to login as other user.
![other user](https://aashu.co.in/wp-content/uploads/2024/05/other-domain.png)
Once you login in the machine, open PowerShell and use the command ipconfig /all and whoami.exe to confirm the connection to domain ad.lab
![Powershell](https://aashu.co.in/wp-content/uploads/2024/05/powershell.png)
In this module we have installed and joined the Windows 10 machine with the AD LAB network. In the next module, we will install Splunk on ubuntu Linux.