{"id":133,"date":"2022-07-16T00:39:11","date_gmt":"2022-07-16T00:39:11","guid":{"rendered":"https:\/\/jonthecyberguy.tech\/?p=133"},"modified":"2022-07-16T00:39:12","modified_gmt":"2022-07-16T00:39:12","slug":"active-directory-home-lab-with-bulk-user-creation","status":"publish","type":"post","link":"https:\/\/jonthecyberguy.tech\/?p=133","title":{"rendered":"Active Directory Home Lab With Bulk User Creation"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Active Directory Home Lab With Bulk User Creation<\/h2>\n\n\n\n<p>This project is a walkthrough of how I created an Active Directory home lab Environment using VMWare. I set up a Microsoft Server to run Active Directory on it. I then configure a Domain Controller that will allow me to run a domain. After that I ran a Powershell script to create over 1000 users in Active Directory and proceed to log into those newly created accounts on another client that uses the domain I set up to connect to the internet. This lab simulates a business environment. In this lab I&#8217;ll need a Microsoft Server 2019 ISO, A Windows 10 Enterprise ISO, VMWare and a Powershell script.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Languages and Utilities used<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Active Directory<\/strong><\/li>\n\n\n\n<li><strong>PowerShell<\/strong><\/li>\n\n\n\n<li><strong>CMD<\/strong><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Environments Used<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>VMWare<\/strong><\/li>\n\n\n\n<li><strong>Microsoft Server 2019<\/strong><\/li>\n\n\n\n<li><strong>Windows 10<\/strong>&nbsp;(21H2)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Links<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>VMWare:<\/strong>  <a href=\"https:\/\/www.vmware.com\/products\/workstation-player\/workstation-player-evaluation.html\" target=\"_blank\" rel=\"noopener\" title=\"\">https:\/\/www.vmware.com\/products\/workstation-player\/workstation-player-evaluation.html<\/a><\/li>\n\n\n\n<li><strong>Microsoft Server 2019:<\/strong>  <a href=\"https:\/\/www.microsoft.com\/en-us\/evalcenter\/download-windows-server-2019\" target=\"_blank\" rel=\"noopener\" title=\"\">https:\/\/www.microsoft.com\/en-us\/evalcenter\/download-windows-server-2019<\/a><\/li>\n\n\n\n<li><strong>Windows 10 ISO:<\/strong>  <a href=\"https:\/\/www.techworm.net\/2022\/08\/download-windows-10-iso.html\" target=\"_blank\" rel=\"noopener\" title=\"\">https:\/\/www.techworm.net\/2022\/08\/download-windows-10-iso.html<\/a><\/li>\n\n\n\n<li><strong>Create Users Script:<\/strong>  <a href=\"https:\/\/github.com\/JonCyberGuy\/ActiveDirectoryLab\/blob\/main\/CREATE_USERS.ps1\" target=\"_blank\" rel=\"noopener\" title=\"\">https:\/\/github.com\/JonCyberGuy\/ActiveDirectoryLab\/blob\/main\/CREATE_USERS.ps1<\/a><\/li>\n\n\n\n<li><strong>Names.txt:<\/strong>  <a href=\"https:\/\/github.com\/JonCyberGuy\/ActiveDirectoryLab\/blob\/main\/names.txt\" target=\"_blank\" rel=\"noopener\" title=\"\">https:\/\/github.com\/JonCyberGuy\/ActiveDirectoryLab\/blob\/main\/names.txt<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"has-text-align-center wp-block-heading\">Program walkthrough<\/h3>\n\n\n\n<p class=\"has-text-align-center\"><strong>The network diagram I will be using for this project<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"603\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Diagram1-1024x603.png\" alt=\"\" class=\"wp-image-134\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Diagram1-1024x603.png 1024w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Diagram1-300x177.png 300w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Diagram1-768x452.png 768w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Diagram1-1536x904.png 1536w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Diagram1.png 1804w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>For the Virtual Machine that will be hosting my Domain Controller, I need two network adapters. I need the NAT that will use my host IP address from my home router and an Internal Network Adapter so that my DC can communicate with other Virtual Machines. For the Internal Network I will be using VMnet0. Refer to the diagram at the beginning<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"735\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/VM_Server_Config_NAT.jpg\" alt=\"\" class=\"wp-image-135\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/VM_Server_Config_NAT.jpg 750w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/VM_Server_Config_NAT-300x294.jpg 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"737\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/VM_Server_Config_Internal_Network.jpg\" alt=\"\" class=\"wp-image-136\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/VM_Server_Config_Internal_Network.jpg 750w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/VM_Server_Config_Internal_Network-300x295.jpg 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>After downloading Windows Server 2019 on the Virtual Machine the first thing I have to do is configure the two network Adapters I have. One is the external NIC and one is the Internal NIC<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"792\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/setting_up_internal_network-2-1024x792.jpg\" alt=\"\" class=\"wp-image-137\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/setting_up_internal_network-2-1024x792.jpg 1024w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/setting_up_internal_network-2-300x232.jpg 300w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/setting_up_internal_network-2-768x594.jpg 768w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/setting_up_internal_network-2.jpg 1222w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>Now I have to figure out which NIC is our NAT. It is Ethernet0 because its DNS is localdomain<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"617\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Configuring-network-1024x617.jpg\" alt=\"\" class=\"wp-image-138\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Configuring-network-1024x617.jpg 1024w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Configuring-network-300x181.jpg 300w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Configuring-network-768x462.jpg 768w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Configuring-network.jpg 1199w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1011\" height=\"557\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Configuring-the-network-1.jpg\" alt=\"\" class=\"wp-image-140\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Configuring-the-network-1.jpg 1011w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Configuring-the-network-1-300x165.jpg 300w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Configuring-the-network-1-768x423.jpg 768w\" sizes=\"(max-width: 1011px) 100vw, 1011px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>I rename the adapters so it is easier for me to tell which is which and it is important later on when setting up the DC and DHCP<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"580\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/RENAMING-1024x580.jpg\" alt=\"\" class=\"wp-image-141\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/RENAMING-1024x580.jpg 1024w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/RENAMING-300x170.jpg 300w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/RENAMING-768x435.jpg 768w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/RENAMING.jpg 1178w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>I configure the Internal network adapter and assign it an IP address based on the diagram above (172.16.0.1) and I do not need to give it a default gateway because the Domain Controller is the gateway. As for the DNS server I assign it an IP based on the diagram because when I install Active Directory it will install DNS. I set it as a loopback address so it pings itself<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"604\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/CONFIGURING-THE-IP-1024x604.jpg\" alt=\"\" class=\"wp-image-142\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/CONFIGURING-THE-IP-1024x604.jpg 1024w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/CONFIGURING-THE-IP-300x177.jpg 300w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/CONFIGURING-THE-IP-768x453.jpg 768w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/CONFIGURING-THE-IP.jpg 1186w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>Now that I know which network adapter is our external and internal, I go ahead and rename the PC from the long complicated name is has now to just DC (Domain Controller). This forces a restart, which is fine<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"793\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Renaming_PC-1024x793.jpg\" alt=\"\" class=\"wp-image-143\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Renaming_PC-1024x793.jpg 1024w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Renaming_PC-300x232.jpg 300w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Renaming_PC-768x595.jpg 768w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Renaming_PC.jpg 1213w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>After booting back in I start the process of downloading Active Directory. Video cut short but it downloads successfully.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-video aligncenter\"><video controls src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Installing-Active-Directory.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><strong>I installed Active Directory Domain Services, but we never actually set the server (or computer) as the domain. I have to actually create the domain<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-video aligncenter\"><video controls src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Promoting_to_domain.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><strong>When the server is promoted to a domain, it forces a restart. When I log back into the system, you can see that the domain was created successfully because my admin account now has MYDOMAIN in front of it!<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"539\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/My_domain_configured_correctly-1024x539.jpg\" alt=\"\" class=\"wp-image-146\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/My_domain_configured_correctly-1024x539.jpg 1024w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/My_domain_configured_correctly-300x158.jpg 300w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/My_domain_configured_correctly-768x404.jpg 768w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/My_domain_configured_correctly-1536x808.jpg 1536w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/My_domain_configured_correctly.jpg 1880w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>Instead of using the built in Admin account, I will create a dedicated domain Admin account<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-video aligncenter\"><video controls src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Creating_Admin_Account-1.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><strong>I created a domain specific admin account, but it does not have admin priviledges. I have to go into Active Directory and promote this new account to Administrator. After I do that, I then log out of the built in Admin account and into my newly created Domain Admin account!<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-video aligncenter\"><video controls src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Promoting_to_admin-1.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><strong>I need to install and configure the RAS\/NAT so that my Windows 10 client computer will be able to access the internet through the internal network via the Domain Controller<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-video aligncenter\"><video controls src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Configuring_RAS_NAT.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><strong>Now that the role is installed I need to configure the Routing and Remote Access<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-video aligncenter\"><video controls src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Setting_Up_Remote_Access.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><strong>Great! Now that Remote Access is installed and configured, it is now time to Install a DHCP Server. This will allow our Windows 10 clients to be assigned an IP address and allow them to browse the internet.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-video aligncenter\"><video controls src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Installing_DHCP-3.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><b>Now to configure the DHCP and setup a scope. The whole purpose of DHCP is to allows computers on the network to automatically be assigned an IP address. The scope I will be creating will give assign IP addresses in a range, the range being 172.16.0.100-200. So the DHCP will be able to assign 100 IP addresses. I also set the amount of time the IP addresses can be leased out to 20 days. The reason for the lease is when an IP address is assigned, it can&#8217;t be assigned to other devices. So if I only have 100 IP addresses and 100 are used, new devices can&#8217;t be assigned an IP address on the network, meaning they can&#8217;t connect to the internet. A lease is just an amount of time an IP address can be owned (leased) by a device before being recycled. <\/b><strong style=\"font-weight: bold;\">for example<\/strong>: <strong>A Caf\u00e9 offers wifi to it&#8217;s patrons. The average time a person spends inside said Caf\u00e9 is 2 hours. It would make no sense to lease an IP address to them for 20 days. That would effectively lock up that IP address for that amount of time and no one else could use it. If this were a Caf\u00e9 I would recommend setting the lease duration to under 4 hours and have a bigger range. Since this is only a Homelab, the lease duration doesn&#8217;t matter.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-video aligncenter\"><video controls src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Configuring_The_DHCP-2.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><strong>To get my Powershell script from the internet I need to be able to browse the web. I have to disable the security features on the Domain Controller. If this was an actual production environment I would never do this, huge security risk. Since this is only a lab environment for myself it is not an issue. I could browse the internet without doing this step but it is annoying because it will spam us warnings for every webpage we visit<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-video aligncenter\"><video controls src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Turning_Off_IE_Security-3.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><strong>Now that Active Directory is configured and my Domain Controller is configured as well, I use the Powershell script to create over 1000 user accounts<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1025\" height=\"770\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Running_Powershell_Script-2-3.jpg\" alt=\"\" class=\"wp-image-184\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Running_Powershell_Script-2-3.jpg 1025w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Running_Powershell_Script-2-3-300x225.jpg 300w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Running_Powershell_Script-2-3-768x577.jpg 768w\" sizes=\"(max-width: 1025px) 100vw, 1025px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>Here is a video of the script running!<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-video aligncenter\"><video controls src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Running_Powershell_Script-3.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"has-text-align-center\"><strong>The script has run successfully and the output confirmations that the user accounts has been created looks amazing. There were some duplicates that were not created, but that could be solved by adding  a few lines of code to the Powershell script that will tell it what to do in case duplicates occur.<\/strong> <strong>For example: &#8220;If a duplicate occurs, add a 1 to the end of the account name.&#8221; If you want to see the full code used, navigate to my Github. The script is under CREATE_USERS.ps1<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"772\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Powershell_Script_Ran-2-3.jpg\" alt=\"\" class=\"wp-image-186\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Powershell_Script_Ran-2-3.jpg 1024w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Powershell_Script_Ran-2-3-300x226.jpg 300w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Powershell_Script_Ran-2-3-768x579.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>It is now time to create a new Virtual Machine that will act as a user in the domain. I name this machine CLIENT1<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"716\" height=\"589\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Configuring_Windows_VM-1.jpg\" alt=\"\" class=\"wp-image-175\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Configuring_Windows_VM-1.jpg 716w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Configuring_Windows_VM-1-300x247.jpg 300w\" sizes=\"(max-width: 716px) 100vw, 716px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>I configure the network adapter so that it is not NAT and can&#8217;t connect to the internet on my local network. The only way this Virtual Machine should be able to connect to the internet is by being assigned an IP address from the DC on the Server VM. Refer to the Diagram at the beginning. I have to change the network adapter to be on the same internal network as the Domain Controller, in this case VMnet0<\/strong><br><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"762\" height=\"741\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/VM_Client_Config-2-1.jpg\" alt=\"\" class=\"wp-image-177\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/VM_Client_Config-2-1.jpg 762w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/VM_Client_Config-2-1-300x292.jpg 300w\" sizes=\"(max-width: 762px) 100vw, 762px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>After configuring a separate virtual machine that will simulate an employee logging into the domain. Lets kill two birds with one stone by renaming the computer CLIENT1 and clicking the box to become a member of the mydomain.com domain. I am prompted to give my log in credential and I chose to use the Administrator account I set up earlier<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1020\" height=\"771\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Renaming_and_Joining_Domain-2-1.jpg\" alt=\"\" class=\"wp-image-180\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Renaming_and_Joining_Domain-2-1.jpg 1020w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Renaming_and_Joining_Domain-2-1-300x227.jpg 300w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Renaming_and_Joining_Domain-2-1-768x581.jpg 768w\" sizes=\"(max-width: 1020px) 100vw, 1020px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>I Successfully join the domain as a member!<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Successfully_Joined-2-1.jpg\" alt=\"\" class=\"wp-image-179\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Successfully_Joined-2-1.jpg 1024w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Successfully_Joined-2-1-300x225.jpg 300w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Successfully_Joined-2-1-768x576.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>I log into a user account I created from the Powershell script to test if everything is configured correctly. Instead of logging into the user account created when I made the virtual machine, I try to log into a user created account in MYDOMAIN<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"954\" height=\"720\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Successfully_Logging_In_as_a_bulk_created_user-1.gif\" alt=\"\" class=\"wp-image-190\"\/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>Running command promt to see if the client VM is getting the IP address properly assigned by the DC. We can see that I was properly leased an IP address by the domain controller (circled red) and when I ping the domain, it works (circled yellow)<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"769\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Windows_10_Internet_Working-2-1.jpg\" alt=\"\" class=\"wp-image-182\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Windows_10_Internet_Working-2-1.jpg 1024w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Windows_10_Internet_Working-2-1-300x225.jpg 300w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Windows_10_Internet_Working-2-1-768x577.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>A final test to see that the work environment and bulk users I created is working<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1019\" height=\"731\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Final_Picture_whoami-2-1.jpg\" alt=\"\" class=\"wp-image-176\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Final_Picture_whoami-2-1.jpg 1019w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Final_Picture_whoami-2-1-300x215.jpg 300w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Final_Picture_whoami-2-1-768x551.jpg 768w\" sizes=\"(max-width: 1019px) 100vw, 1019px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>I head back into my server VM and check the DCHP to see how many addresses has been leased. We can see here circled in red that my CLIENT1 Virtual Machine has been leased an address. If this was a real company environment there would be hundreds, if not thousands of leased addresses in this folder depending on what the lease duration is of course! I set mine to 20 days in this environment<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"787\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Client_Computer_Leased_IP-2-1-1024x787.jpg\" alt=\"\" class=\"wp-image-181\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Client_Computer_Leased_IP-2-1-1024x787.jpg 1024w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Client_Computer_Leased_IP-2-1-300x231.jpg 300w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Client_Computer_Leased_IP-2-1-768x590.jpg 768w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Client_Computer_Leased_IP-2-1.jpg 1089w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>Here is another way to check how many computers or devices are currently connected to the domain. We can see that my CLIENT1 computer is being properly recognized in Active Directory. Again, if this was a real environment there would probably be thousands of devices in this folder<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"789\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Users_and_computers_Client_Computer-2-1-1024x789.jpg\" alt=\"\" class=\"wp-image-178\" srcset=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Users_and_computers_Client_Computer-2-1-1024x789.jpg 1024w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Users_and_computers_Client_Computer-2-1-300x231.jpg 300w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Users_and_computers_Client_Computer-2-1-768x592.jpg 768w, https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/Users_and_computers_Client_Computer-2-1.jpg 1088w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p class=\"has-text-align-center\"><strong>Here I am scrolling through all the User accounts I created with Powershell. Over 1000 has been created!<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"686\" src=\"https:\/\/jonthecyberguy.tech\/wp-content\/uploads\/2022\/07\/All_users_in_AD-1.gif\" alt=\"\" class=\"wp-image-189\"\/><\/figure><\/div>","protected":false},"excerpt":{"rendered":"<p>Active Directory Home Lab With Bulk User Creation This project is a walkthrough of how I created an Active Directory home lab Environment using VMWare. I set up a Microsoft Server to run Active Directory on it. I then configure a Domain Controller that will allow me to run a domain. After that I ran [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":201,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"saved_in_kubio":false,"footnotes":""},"categories":[9],"tags":[],"class_list":["post-133","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cybersecurity-projects"],"_links":{"self":[{"href":"https:\/\/jonthecyberguy.tech\/index.php?rest_route=\/wp\/v2\/posts\/133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jonthecyberguy.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jonthecyberguy.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jonthecyberguy.tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jonthecyberguy.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=133"}],"version-history":[{"count":12,"href":"https:\/\/jonthecyberguy.tech\/index.php?rest_route=\/wp\/v2\/posts\/133\/revisions"}],"predecessor-version":[{"id":783,"href":"https:\/\/jonthecyberguy.tech\/index.php?rest_route=\/wp\/v2\/posts\/133\/revisions\/783"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jonthecyberguy.tech\/index.php?rest_route=\/wp\/v2\/media\/201"}],"wp:attachment":[{"href":"https:\/\/jonthecyberguy.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jonthecyberguy.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jonthecyberguy.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}