
Hey everyone. Today I will be talking setting up a Active Directory on your personal computer using (Oracle Virtual Box).
First just a small history of Active Directory. Developed by Microsoft. preview in 1999. An a year later it launch. The main function of Active Directory is to enable administrators to manage permissions and control access to network resources. In Active Directory, data is stored as objects, which include users, groups, applications, and devices, and these objects are categorized according to their name and attributes.
Now its setup time. This is a clear overview of what we’re going to be going doing.
We’re going to download our virtual box from Oracle website, then download the Windows 10 ISO, and Server 2019 ISO. Then we’re going to give our network two adapters. One for outside internet and one for the virtual box. After our virtual machine that we create going be assign our home IP address (Internet Protocol). Next we going to create a domain for our Active Directory, configure RAS/NAT so our client can reach the internet through our domain controller. Setup a DHCP(Dynamic Host Configuration Protocol) on the domain controller so it can automatic get a IP address.Last thing we want to do on the domain controller before we launch our virtual machine (VM) is run a Microsoft PowerShell script so it can 1,000 created users on one of our virtual machine.
After, creating another VM with Windows 10 on it with our user in it. we going to create one more VM and that VM is going to connect to our virtual box network. I'm going to name it client one and log in with our domain account. Now its action time. First, we have to download our virtual box. the website should look like this. Virtual Box Since I have a Windows computer I can download the Windows version, but it supports all three Operating system. Once that's finish downloading. We going to use this link for Windows 10 ISO (https://www.microsoft.com/en-us/evalcenter/evaluate-windows-10-enterprise).You're going have to fill out the giving information to access the software (Country, Languages, and the storage you want 64 or 32 bit) my choice was 64 bit. I'm downloading the Windows Server the 2019 version (https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2019) please select ISO for the lab, now fill out the information that is being present to you.
Open up your virtual box. Its going to ask for you to name it. I'm name my DC (domain controller). Time to select the storage space you want to have. Hopefully you have 8GB that's free. I'm use 2048MB which is 2GB select all the default option after you pick your storge space. In my VM I change some of my options so it can function easier. For shared clipboard I choose bidirectional which make it so where I can drag and drop my files into my VM. For the system depending on your computer and the amount of CPU you want to use can have your VM moving fast or slow. I change mine to 4 CPU. The network option make sure the first adapter say NAT(Network Address Translation). It make sure the first internet is connect to the home internet. For our second one we going to select "Enable Network Adapter" then on Attached to select "Internal Network". Name select "Internet".
Now double tap it or select the green arrow to "Start". Once started select the Window 2019 ISO server you first download. The process might take a while to complete. When finish install, click next if all the giving information regarding Languages, Time, and Keyboard or input method is correct. Now, select Windows Server 2019 Standard Evaluation(Desktop Experience) mostly other selection don't have a GUI(Graphic User Interface) so it will just be a command line and who wants that ? Not us that's who. Accept the license agreement we going to do a Custom: Install Windows only. the system reset several times so give it some time to run its course. If any given moment an option to press any key to reboot "Don't". We’re going to have to start the whole process over if so. Once the black screen appear with the text "Press any key to boot from CD or DVD" don't press any thing it still a system reset.
Now, you at a customize settings. for Administrator you can create a password for the Admin. Make Sure you remember the password or you have to reset it all over In my windows since I can't click the to open my default window. So can I can type my password. I simply right-click. Select keyword it gives an option to insert a "Ctrl+Alt+Delete" function once I click that it open to where I can type in my password. Type your password your created.
Once you're square away which with that you notice that your VM is a preset size you can't enlarge it or minimize it and that’s okay. We going to right-click on the top left hand side". Select "Insert Guest Addition CD Images" then close all the other windows unit you see the home page. Now click the file Explorer. Then select the option "This PC", next "CD Drive (D:) Virtual Box Guest Additions." Run The "VBox Windows Additions and amd64" select all the default option until you run out of Next. Now it should be downloading. Now you should come across option to "Reboot Now or manually reboot later" select the option reboot later.
Reset the VM so we can test to see if it installed correctly you notice you don't have a reset option, and that correct. Select the shutdown function once everything been shut down on your VM. Now reopen it but selecting "Start" on the open page of the VM. Repeat the same steps to log back into your VM again. Now you should be able to resize the VM window. Now, let set up our IP. We can go two different routes, go through the setting options or selection that small computer icon on the bottom right next to the timer. I prefer to go through the second option click the small computer icon. Select "Change adapter options. Now with this step we need to find which Ethernet is connected to our IP address and which is not. By right clicking both options look at the IPv4 Address you will be able to identify which is the home IP. Now I rename mine to "INTERNET" that is mine home IP now rename the VM network name to help is keep track on which one is which.
Now rename the PC. Right click the start menu select "System" theirs an option that say "Rename this PC" click it. I rename my "DC(domain control)" Now reset it. Once you close and start your VM again. Now its time to put an IP to our machines. go back to your Setting, open Ethernet, then "change adapter option". Right click your VM connection. select properties. Now click Internet Protocol Version 4 (TCP/IPV4). for my IP I customizes it, as well with the subnet mask. Preferred DNS server with this selection Active Directory automatic generate a DNS server so I gave it a loopback IP address.
"Packets sent to this address never reach the network but are looped through the network interface card only."
Now time to make Active Directory active. In your Server Manager go to Dashboard. Once there select the "Add roles and features" select next until you reach "Server Selection" Once we have one server click "Next" for that one now we want "Active Directory Domain Services" select next until you install it. Now you notice the yellow flag on the top right hand side. We have to do the Post-deployment Configuration we install the Active Directory now we going to create a Root domain name for it. Once that's done make sure it say "add new forest before you click next" Create a password, select next all the way until you get to the install option in which you will install now that it instilled it should automatic reset. Notice the new administrator name you created.
Creating our own domain admin account instead of going though prebuild admin account. Select the start Menu. Go all the way down until you see Active Directory Users and Computers. Now right click it, select “New”, “Organizational Unit”. Rename it Finished. The new file go to “New Object” - User Fill in the giving information options. Note that this is an Admin account so make note of that when creating. When you create password select the option password never expires. Now the account you created is now an Admin account. right click the account, click the member of, Add, Note in the "Enter the object names to select" note that its a domain admins. Select “OK”. Now to test the site out and instead of selecting the Admin account again to log in. Lets try the "Other User" giving the information we use in the active directory we can see it want user to sign in using the Admin User information and Password so fill the information in the 'other user account'.
Now time for the RAS/NAT (Remote Access server and Network Address Translation). Now go back to Server Manager. Go to Installation select “Next” until you reach “Server Role” check the box "remote access", then next on Role Services. select “Routing”. Everything should run after the Installation progress begin. Open tools, now go to “Routing and Remote Access”. Right click the local system you created. We going to configure the system. Installing NAT allow internal client to connect to the internet using one public IP address. Select “Next” until you reach "Use this public interface to connect to the internet." Selection the one that connected to your home internet. “Next” all through the options until finish.
Install and Configure DHCP. In the Server Manager select add Roles and Features. Next until you reach the Server role option select DHCP Server. Next everything until the system configures. Go to tools then select DHCP. The purpose of it is for computer on the network to automatic assign system an IP address. we going to a scope. We going to right click one of the IPv4 a New Scope Wizards will pop. I assign my physical IP address with a given range. My physical IP is my start IP address, the End IP address will be the end range. Select "Yes, I want to configure these options now" for the option to scope the DHCP. Now you can enter the domain controller for the Router (Default Gateway) option. Now select Add, that add the DHCP address to the IP router. Next step for Domain Name and DNS server. You will notice the parent domain is already filled. You don't have the rest it. Because. Since installing Active directory it comes with default Domain controller so we don’t have to fill out the rest. Next all the way through. Authorizes your server by right clicking it and select "authorizes" now refresh it so. Our IPv4 is not active.
Next we going to configure the VM so we browse through the command controller. Configure the local server. Turn off the Both User & Admin in Internet Explorer Enhanced Security Configuration. Helps avoid the spamming "Are you sure messages ?" messages . We can start up Internet Explore now open that up. I found a source code on Github to active our PowerShell scripts from a good YouTuber Josh Madakor (https://github.com/joshmadakor1/AD_PS) open the link in your VM. We going to save the download file to the Desktop once it download so we can find it in the Desktop folder. Now you will see two files in the folder you just downloaded "Create_Users" and "Names" in names file it should be a thousand names list in the files. List your name on the top of the list. That will be the domain admin domain. Let's now setup PowerShell on to the main menu. Right Click the the Windows Power Shell ISO not the regulars version. click more. Run as Admin. select "yes". We’re going wait until it finish loading up then go to file. then go the Folder that has our script in it to create our users. Before we can run anything we have to enable the execution of all part of the script. to enable it we going to type "Set-ExecutionPolicy Unrestricted" select Yes when the pop up. Now the code that has all the user from the Name file will have the same password. "The User first last List". In the command line type "C:\users[your User Name]\Desktop[your active directory master file]. then press enter Lets check the to see if the name.txt is in the folder. Type "ls" in the command list it should have it. Now open up the Active Directory and see all the listed user. You can do a custom search of a person by Right clicking the domain server in the Find selection.
Lets create a new VM to connect to Windows 10 to the DHCP for our VM will get its IP address from the our Domain controller. Now go back to Virtual Box Manager create a new VM Select a name I chose to name mine "Client 1" for RAM I made it to be 4096MB. In General setting I made my Shared Clipboard Bidirectional and for Drag'nDrop function too. In system I gave myself 4CPU, for my network instead of selection NAT as the default I change it to Internal Network. Now Add the Window 10 ISO in desktop category. Now start it up. Once the VM start running a windows setup popup asking the operating system you want to install select Windows 10 Pro. customize the hard drive since the hard drive is empty. Now it should automatically restart. with the window internet set up. select "continue with limited setup. Fill out the questionnaire. now it should run the VM it might take awhile.
Now lets see if the internet is working in the search bar at the bottom type "CMD" which should open the command prompt. to test it type the text "ipconfig" We making sure all the five thing is running the DNS connection, IPv6 address,IPv4, Subnet mask, Default Gateway if you see feedback for the categories that mean your system is running correctly.
About the author
Hey I'm Cyber T. I make mini blog about Cyber Security, Economics, JavaScript, and all other random things that interest me.
Comments
Join the discussionNo comments yet. Be the first to comment.



