This project serves as a demonstrative showcase of adept system administration skills, illustrating proficiency in constructing and managing complex network environments. By meticulously configuring a Microsoft Server to host Active Directory and deploying a Domain Controller, the undertaking underscores adeptness in system architecture and domain management.
The utilization of PowerShell scripting to automate user creation processes showcases a nuanced understanding of automation tools, streamlining administrative tasks and enhancing efficiency. Moreover, the successful integration of Windows 11 Enterprise and the Microsoft Server 2022 ISO within a VMWare virtualized environment underscores adaptability and proficiency in deploying contemporary technologies.
Through the seamless orchestration of these components, this project not only exemplifies technical expertise but also highlights the ability to navigate and optimize multifaceted IT landscapes, essential traits for effective system administration.
- Understand the fundamental concepts of Active Directory and its role in network administration
- Develop skills in utilizing virtualization software (such as VMWare) to create and manage virtual machines
- Learn to set up and manage a Domain Controller within a network infrastructure
- Develop problem-solving skills through troubleshooting any issues encountered during the setup and configuration process
- Acquire proficiency in using PowerShell scripting to automate administrative tasks within a Windows environment
- Understand domain connectivity principles and authentication mechanisms, exemplified through logging into user accounts within a domain environment
- Virtualization Software: VMware Workstation Player or Oracle Virtualbox
- Microsoft Windows Server 2022
- Microsoft Windows 11 Enterprise
You will need to download the files above beforehand
- Powershell
- Active Directory
- CMD
To accommodate my Domain Controller on the Virtual Machine, I require two network adapters. Firstly, a NAT adapter utilizing my home router's IP address to facilitate external connectivity, and secondly, an Internal Network Adapter (VMnet0) to enable communication with other Virtual Machines. Please consult the diagram provided earlier for reference
![adhl_1 1](https://private-user-images.githubusercontent.com/50858187/320257735-809a2589-54f6-474c-bcef-8714e5ac431e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MTk5MTcsIm5iZiI6MTcyNDUxOTYxNywicGF0aCI6Ii81MDg1ODE4Ny8zMjAyNTc3MzUtODA5YTI1ODktNTRmNi00NzRjLWJjZWYtODcxNGU1YWM0MzFlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE3MTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBmYWIwM2FjNTM3NDI5MDhmYzE5YzEzMTVjY2NhMDVjMTNhYjYzMDAwMGZjNjVlYTU3NWU2NTAxYjY1ZDMwNjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OOEd120t7S_lNSWTgcEN2SsHAzqA4X-OBlNnua7iFzU)
![adhl_1 2](https://private-user-images.githubusercontent.com/50858187/320257820-8d42f7a6-55c3-40cb-9468-7ebe375725da.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MTk5MTcsIm5iZiI6MTcyNDUxOTYxNywicGF0aCI6Ii81MDg1ODE4Ny8zMjAyNTc4MjAtOGQ0MmY3YTYtNTVjMy00MGNiLTk0NjgtN2ViZTM3NTcyNWRhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE3MTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk5ODgxMWQxNDgzYjAxNmI4NjE4NjM5Y2NhMTc2Yzk1ZWNjNDUwNTlmMDE4YTFkNmQyZDBjNDY1ZDNhZGU1ZGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.0sVQaUch1VN14yLNv7zuKt6th_T134yo044DRo_7jLk)
Upon installing Windows Server 2022 on the Virtual Machine, my initial task involves configuring the two network adapters at my disposal: one designated for external connectivity and the other for internal network communication
![adhl_1 3](https://private-user-images.githubusercontent.com/50858187/320257838-9b44d5c7-dcf0-44fc-9e76-8441cfe144ca.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MTk5MTcsIm5iZiI6MTcyNDUxOTYxNywicGF0aCI6Ii81MDg1ODE4Ny8zMjAyNTc4MzgtOWI0NGQ1YzctZGNmMC00NGZjLTllNzYtODQ0MWNmZTE0NGNhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE3MTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUwNjFkYmZkYTVkOTRkOGQ4ZGQ3YWYwOWUyZjlkMTI1ODg3NjBmZjM5MmJlZjMyYjU4Yzg5ODY1YTk1ZjVjNDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.PJnJVigpHtmzOUaQikU12D5AeEfadKA_xzK8mUMfNQw)
Now, I need to determine which NIC serves as our NAT. Ethernet0 is identified as the NAT adapter since its DNS is assigned to "localdomain."
![adhl1 4](https://private-user-images.githubusercontent.com/50858187/320257844-248cd244-c363-43eb-ba45-e96493672bc8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MTk5MTcsIm5iZiI6MTcyNDUxOTYxNywicGF0aCI6Ii81MDg1ODE4Ny8zMjAyNTc4NDQtMjQ4Y2QyNDQtYzM2My00M2ViLWJhNDUtZTk2NDkzNjcyYmM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE3MTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU3ZDJjODBmYzBmMjczNGJiMjUwNmFmNDc0MWFjMjJhYzY1YjYyMWE0NjU2MGM2YWIzYmUwMjNiMTM5Y2IyMjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.nwq9ermSW7_9Z340zYmK-NoZDoObAfoXLyBJOkVlYr8)
![adhl_1 5](https://private-user-images.githubusercontent.com/50858187/320257859-de70b3c2-7c58-42dd-8398-56d88869572c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MTk5MTcsIm5iZiI6MTcyNDUxOTYxNywicGF0aCI6Ii81MDg1ODE4Ny8zMjAyNTc4NTktZGU3MGIzYzItN2M1OC00MmRkLTgzOTgtNTZkODg4Njk1NzJjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE3MTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThiMWI4YWZiOTliYTJkNDA2YzgyM2RlYmQzNzNmMGUwY2QzZDc0YTM0YzNhZDc3OGRlNmU5MjVkOTQ5YTM1MzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.NfmpIZEhXwknwDiEUI7Z0ONhzLN_yDkLfHiwtnYxL6s)
I proceed to rename the adapters for clarity, which will prove beneficial during the subsequent setup of the Domain Controller (DC) and DHCP
Next, I configure the Internal network adapter, assigning it the IP address depicted in the diagram (172.16.0.1). Omitting a default gateway is intentional since the Domain Controller serves as the gateway. For DNS server configuration, I allocate an IP address per the diagram, anticipating Active Directory installation, which automatically installs DNS. I designate it as a loopback address to enable self-pinging
Having identified the external and internal network adapters, I proceed to rename the PC from its current long and complex name to simply "DC" (Domain Controller). This action necessitates a restart, which is acceptable
![adhl1 8](https://private-user-images.githubusercontent.com/50858187/320257965-00c53f49-b02a-4565-a9a1-2f1d08aa3162.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MTk5MTcsIm5iZiI6MTcyNDUxOTYxNywicGF0aCI6Ii81MDg1ODE4Ny8zMjAyNTc5NjUtMDBjNTNmNDktYjAyYS00NTY1LWE5YTEtMmYxZDA4YWEzMTYyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE3MTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRmYTAyZWUxMDhkOGViOGQ2MGIxMTFjZTE1NjM0NDQ2NTk0MDQwYzE5YjRhMTU5ZDc1NGJiNjBmMDc1OTFiNGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GdryERKFCJaYNll6pRf2I4_0pdiIMQAXZ-5SkcwQcjs)
Upon rebooting, I initiate the download process for Active Directory
adhl_2.0_install_AD.mp4
I've installed Active Directory Domain Services, but we haven't yet designated the server (or computer) as the domain. Now, I need to proceed with creating the domain
adhl_2.1_domainpromo.mp4
Upon promoting the server to a domain, a restart is enforced. Upon logging back in, you'll notice that the domain has been successfully created as my admin account now displays "MYDOMAIN" prefixed to it
![adhl_2 2](https://private-user-images.githubusercontent.com/50858187/320340053-38ff04b8-4ecf-4766-82a3-d5be190c5173.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MTk5MTcsIm5iZiI6MTcyNDUxOTYxNywicGF0aCI6Ii81MDg1ODE4Ny8zMjAzNDAwNTMtMzhmZjA0YjgtNGVjZi00NzY2LTgyYTMtZDViZTE5MGM1MTczLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE3MTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRjMzRmNTQxNGJjMTMwYzY3OTFhZjJmYTQ5OWJlM2E2ZjRiYjAxM2Q4OGY3ZjQ2ODI3NjRiMDIxMjI5MGY4YmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.6K1CxsLAkIxCXziVS0FsJq8LqfockxW7wmbHYHR5vzs)
Now, instead of relying on the built-in Admin account, I will establish a dedicated domain Admin account
adhl_2.2_adminacctcrtn.mp4
I've created a domain-specific admin account, but it lacks administrative privileges. To rectify this, I navigate to Active Directory and elevate this new account to Administrator status. Once completed, I log out of the built-in Admin account and log in using my newly created Domain Admin account
adhl_2.3_adminpromo.mp4
Next, I must install and set up the RAS/NAT to enable my Windows 11 client computer to access the internet via the internal network routed through the Domain Controller
adhl_2.4_ras_nat_config.mp4
With the role successfully installed, the next step is to configure the Routing and Remote Access functionality
adhl_2.5_remoteaccess_setup.mp4
Excellent! With Remote Access installed and configured, it's time to proceed with installing a DHCP Server. This step will facilitate the assignment of IP addresses to our Windows 10 clients, enabling them to browse the internet seamlessly
Now, let's configure the DHCP and establish a scope. DHCP's primary function is to automatically assign IP addresses to computers on the network. The scope I'm creating will allocate IP addresses within the range of 192.168.1.100 to 192.168.1.200, providing DHCP the capability to assign 100 IP addresses effectively. Additionally, I've set the lease duration to 8 days. This lease ensures that once an IP address is assigned, it remains reserved for that device for a specified period. Without it, new devices couldn't obtain IP addresses, hindering their ability to connect to the internet.
To illustrate, consider a scenario like a library offering Wi-Fi access. If patrons typically spend around 2 hours inside, it wouldn't be practical to lease an IP address for 8 days. This would tie up the IP address unnecessarily. In such a case, it's advisable to set the lease duration to under 4 hours and allocate a broader range. However, for a virtual environment like ours, where usage is temporary, the lease duration isn't crucial
adhl_2.7_dhcp_config.mp4
In order to retrieve my PowerShell script from the internet, I must enable web browsing capabilities. This involves temporarily disabling security features on the Domain Controller. It's crucial to note that in a real production environment, such actions would never be taken due to the inherent security risks. However, since this setup is solely for personal lab experimentation, security concerns are less of an issue. While technically possible to browse the internet without this step, it would result in a barrage of warnings for every webpage visited, which can be quite bothersome
With Active Directory and my Domain Controller properly configured, I utilize a PowerShell script to generate more than 1000 user accounts. Below is a video showcasing the script in action!
adhl_3.0_running_PS.mp4
The script has executed without any issues, and the visual confirmation of the created user accounts is quite impressive. While there were some duplicates that were not created, resolving this is straightforward by enhancing the PowerShell script with additional lines of code to handle duplicates. For instance, we can instruct the script to append a "1" to the end of the account name if a duplicate is encountered. If you're interested in reviewing the complete code utilized, please refer to the top of this repository. The script can be found under the name "CREATE_USERS.ps1."
![adhl_3 1](https://private-user-images.githubusercontent.com/50858187/320340612-0a7f43a7-6a33-4399-8e1a-00dba0679aec.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MTk5MTcsIm5iZiI6MTcyNDUxOTYxNywicGF0aCI6Ii81MDg1ODE4Ny8zMjAzNDA2MTItMGE3ZjQzYTctNmEzMy00Mzk5LThlMWEtMDBkYmEwNjc5YWVjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE3MTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY4Yjk2M2IwMTNhODk0M2I1ZDEzNjNmNmUxMzVmNjg4Yjk2NTQ0NTQ3N2YwMDUyMGIyMDQ2MDFkNDc3MDExMTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.KskSO1yM4sPdRGUq3mVOT8kph5UKoop9s2Od5VZdzB8)
The next step is to establish a new Virtual Machine, which will function as a user within the domain. I designate this machine with the name "CLIENT1."
![adhl_3 2](https://private-user-images.githubusercontent.com/50858187/320340624-5a04a9a0-1d1b-4cd8-81ae-b382c9f72470.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MTk5MTcsIm5iZiI6MTcyNDUxOTYxNywicGF0aCI6Ii81MDg1ODE4Ny8zMjAzNDA2MjQtNWEwNGE5YTAtMWQxYi00Y2Q4LTgxYWUtYjM4MmM5ZjcyNDcwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE3MTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI5ODFhMTA3ZTQ2MWUwOWMyYjIyZDc5YWFjNTM3NDFhOTgyOTdhMGNlMTk0NTMzYTdkZTM2OTUzNGQ3MzIyMzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.UaVRwjVdqB0s9pEySoQF76Brw0Do7MUc9AAbUT7rNR0)
I adjust the network adapter settings to disable NAT and restrict internet access within my local network. The sole means for this Virtual Machine to connect to the internet is by obtaining an IP address from the Domain Controller on the Server VM. To accomplish this, I configure the network adapter to operate within the same internal network as the Domain Controller, utilizing VMnet0, as indicated in the initial diagram
![adhl_3 3](https://private-user-images.githubusercontent.com/50858187/320340651-80b2f053-2f9a-4134-ac02-b615051f2240.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MTk5MTcsIm5iZiI6MTcyNDUxOTYxNywicGF0aCI6Ii81MDg1ODE4Ny8zMjAzNDA2NTEtODBiMmYwNTMtMmY5YS00MTM0LWFjMDItYjYxNTA1MWYyMjQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE3MTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg0NmE1ZDhkM2I2OWMyNzI5YTEzNGIyOWFhNjBlZjI1ODM1YjlhYjRmMTE2NWQzNGI3ODllZGQ0OGU1OWJmNDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Z5xlvrb6417qCgJPUltx45D7BBqz-LNwt3C4NSPBPvY)
Following the setup of a distinct virtual machine to simulate an employee logging into the domain, I streamline the process by renaming the computer to CLIENT1 and selecting the option to join the mydomain.com domain. As part of this step, I'm prompted to provide login credentials, and I opt to utilize the Administrator account that I established previously
![adhl_3 4](https://private-user-images.githubusercontent.com/50858187/320353635-82d04817-ddaf-4503-8616-80e680410418.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MTk5MTcsIm5iZiI6MTcyNDUxOTYxNywicGF0aCI6Ii81MDg1ODE4Ny8zMjAzNTM2MzUtODJkMDQ4MTctZGRhZi00NTAzLTg2MTYtODBlNjgwNDEwNDE4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE3MTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEwNWYzMDNmZDA3YWZmOGRiOGIyMGNjYWNkODhhZjJkNjM0MjRlZmYxZjBkM2U2OTdmMTNhNDkwMGQ0YWIyNTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.6ovxfmOuY07W_H63-7xPpM4pJoBiU1tquLeKkmhyx7c)
I have successfully become a member of the domain!
![adhl_3 5](https://private-user-images.githubusercontent.com/50858187/320353813-476ad0bb-f4f7-491d-8c67-454a10c62514.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MTk5MTcsIm5iZiI6MTcyNDUxOTYxNywicGF0aCI6Ii81MDg1ODE4Ny8zMjAzNTM4MTMtNDc2YWQwYmItZjRmNy00OTFkLThjNjctNDU0YTEwYzYyNTE0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE3MTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ1MThkMDdlYjc5ZDVjMTA4M2I0NWRmYTUzYWE0ODY5YzlmMTA5MWI3YzExMjFjYWFhNGQ3MzdiNzJjNzI3MTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.nlhZM8ukL7mMq1RJEwD9xuiNKso-nVpC_MpZrGrfatQ)
I log into a user account generated from the PowerShell script to verify the correctness of the configurations. Rather than accessing the user account created during the virtual machine setup, I attempt to log into a user account established within MYDOMAIN
I'm running Command Prompt to verify if the client VM is correctly receiving the assigned IP address from the DC. As shown by the purple circle, it confirms that I have been successfully leased an IP address by the domain controller. Additionally, the green circle highlights successful pinging of the domain, indicating proper connectivity
![adhl_3 7](https://private-user-images.githubusercontent.com/50858187/320353909-4d2fe7d3-0d5d-4173-a4c1-64b5e555e573.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MTk5MTcsIm5iZiI6MTcyNDUxOTYxNywicGF0aCI6Ii81MDg1ODE4Ny8zMjAzNTM5MDktNGQyZmU3ZDMtMGQ1ZC00MTczLWE0YzEtNjRiNWU1NTVlNTczLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE3MTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTljNGQ2MDZkYWVhNTM1ZmFhMGQ5OTM0MjgwZDhhODliNTY5N2ZhNjVkM2MyMTA1NzI4MjUzNDA0NTc0NjQzZTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.iWpvDji-9n1Pcc79yVBt55RkyJHC2-Ya1wNMo5olx1Q)
A conclusive test to ensure the functionality of the work environment and the bulk users I've created
![adhl_3 71](https://private-user-images.githubusercontent.com/50858187/320353956-11ec8839-e505-4c93-96ff-d5389c517cbc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MTk5MTcsIm5iZiI6MTcyNDUxOTYxNywicGF0aCI6Ii81MDg1ODE4Ny8zMjAzNTM5NTYtMTFlYzg4MzktZTUwNS00YzkzLTk2ZmYtZDUzODljNTE3Y2JjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE3MTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI0MTdlZTRjMWVmNjQzYTUwMzQwMjBmODUzZDlhNTk2ZWE4ODQ3M2FkNDY4NTVkMWMwZDNmYTU1MGNiYjgzMDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.TTIgto65VbR7cLYJbebVQTymYlFmeulKGGhzlwoNyxM)
Returning to my server VM, I review the DHCP to assess the number of leased addresses. As highlighted in red, it's evident that my CLIENT1 Virtual Machine has been assigned an address. In a real corporate setting, this folder would likely contain hundreds, if not thousands, of leased addresses, depending on the lease duration. Of course, the number varies depending on the specific environment; in this instance, I've set the lease duration to 8 days
![adhl_3 72](https://private-user-images.githubusercontent.com/50858187/320353986-0a5e4ee2-5c61-41f8-a638-12deefdf764c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MTk5MTcsIm5iZiI6MTcyNDUxOTYxNywicGF0aCI6Ii81MDg1ODE4Ny8zMjAzNTM5ODYtMGE1ZTRlZTItNWM2MS00MWY4LWE2MzgtMTJkZWVmZGY3NjRjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE3MTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRmYjNlZjI2ZGYzOGY5MmI4ZjU3NDE3M2JkM2M1NzI2MDBjNDFkMDVhNmUxMzY5MDZkNTljNDg3ODJiZGRiZGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.NxDs3aOkzkov8O7ZB-n7_FgwFUy30NxK0LUUAhhxSl0)
Here's an alternative method to monitor the current connected devices within the domain. It's evident from Active Directory that my CLIENT1 computer is being accurately recognized. In a genuine corporate setting, this folder would likely contain a multitude of devices, potentially numbering in the thousands
![adhl_3 73](https://private-user-images.githubusercontent.com/50858187/320354032-b84ffe5d-35c9-4b8c-8d1e-c8d7e173d9e2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ1MTk5MTcsIm5iZiI6MTcyNDUxOTYxNywicGF0aCI6Ii81MDg1ODE4Ny8zMjAzNTQwMzItYjg0ZmZlNWQtMzVjOS00YjhjLThkMWUtYzhkN2UxNzNkOWUyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI0VDE3MTMzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRkNTM2NTk2NmRkM2EyNDQ2MGNiODc5NWU2NzYxNWMzMWZiYTc5ZDhhZjczMTA5Yjg4YzdkODMxNmFmYjg3MjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.zvF4373Q9_ByRkPoXj068N0b_xeA0ul4ui2EAUDlSsw)
Here, I'm scrolling through the User accounts generated using PowerShell. Remarkably, over 1000 accounts have been successfully created!