Let’s Build Active Directory Home LAB
- Open VirtualBox Manager and Click on “New”
2. Give Relevant Name and select Server 2019 IOS and check “skip unattended Installation”
3. Give RAM according to your system configuration
4. Allocate Size according to your need.
5. Check the summary Once and click on Finish
6. Before starting machine let’s do make some changes in “Settings”
7. Navigate to Network and Select “Adapter 2” and Enable it and then select “Internal Network” in Attached to drop down.
8. Now let’s start installation process by click start.
9. Based on your preference select Language, Time & Keyboard method and Hit Next
10. Now click on Install Now
11. Select “Windows Server 2019 Standard Evaluation (Desktop Experience)” and hit Next.
12. Read the License terms and press Next
13. In next window select “Custom: Install windows only”
14. Click on “new”
15. Apply appropriate size.
16. Hit OK
17. Select Partition with highest size and press Next
18. Wait for few minutes to complete the installation.
19. Once installation is complete it will prompt for “Administrator” Password.
20. Once everything will be ready then you will see below screen. Now to Press “Ctrl+Alt+Del” we need to use “Input → Keyboard →Insert Ctrl+Alt+Del”
21. Enter Administrator Password that we setup few steps back
22. Now let’s install “VirtualBox Guest Additions”. So for that click on “Devices” and then simply click on “Insert Guest Additions CD image”
23. Open “This PC” and you will see CD Drive. Double Click on it.
24. Based on your system configuration select any executable and run it.
25. On very first screen simply click on Next
26. Give Destination Folder. i am going with default options.
27. Go with Default options and hi Install
28. Once installation completes it will ask for Reboot and go with “Reboot now” and wait for system to restart. Once system restart login again.
29. Let’s change settings for IP Address. Click on “Computer icon, see below screenshot for better understanding”
30. Click on “Change Adapter Options”
31. Most probably you will see 2 connection.
32. Click on Ethernet which contains “Network” and rename it to INTERNET.
33. Double click on Ethernet 2
34. Now click on “Properties” and double click on “IPv4” and set IP Address “172.16.0.1” and subnet mask “255.255.255.0” and DNS server as “127.0.0.1”
35. Right click on Ethernet 2 and rename it to “INTERNAL_NIC”
36. Right click on “window icon in bottom left” and click on System.
37. Now Click on “Rename this PC” and give appropriate name.
38. Once you rename PC it will ask for system restart. Select “Restart now” and Choose a reason as “Other (Planned)”
39. Once system restart open start menu and click on “Server Manager”
40. Now Click on “Add roles and features”
41. Read the instructions and hit “Next”
42. Select “Role-base or feature-based installation” and click Next
43. In server selection select given server and hit Next
44. In Server Roles section select “Active Directory Domain Services” and hi Next.
45. Once you select “Active Directory Domain Services” you will see new window, click on “Add Features” and then Press next.
46. Go with default options in select features window and hit Next
47. Read the instruction and then Press Next
48. In confirm installation selections screen wait for a second and then once Install button is visible click on it. It will take time.
49. Once it finish press Close.
50. Now back to Server Manager. we need to click on Flag which contain yellow triangle. Now click on “Promote this server to domain controller”
51. Wait for few seconds and then click on “Add a new forest” in Deployment Configuration window.
52. Give relevant name. here i will go with “IRBOT.com”
53. You need to enter password and from drop down you can select windows server version 2016,2012,2008.
54. Go with default options on DNS Options screen.
55. No need to make any changes in “Additional Options” screen hit Next.
56. You can set path for log files and sysvol folder here i am going with default one.
57. Review all the options and press next
58. wait for Prerequisites Check and Hit Install once it’s available.
59. Once installation is over it will automatically restart the machine.
60. As you can see in below screenshot we are now login under “IRBOT” domain.
61. Now let’s create “Domain Admin” accounts. So for that click on start menu and click on “Windows Administrative Tools” and from drop down click on “Active Directory Users & Computers”.
62. Now click on your domain so it will exapand. Right click on User →New →User.
63. Give First Name, Last name and User logon name and hit Next
64. Set Password and hit Next
65. Check details and hit Finish
66. Right click on newly created user and click on Properties.
67. Click on “Member Of”
68. As we can see currently this user is just normal Domain User now we will add this account under “Domain Admins” so for that click on Add
69. Type “domain admin” in Enter the object names to select and hit check Names.
70. Once you hit Check Names you will see changes as below and then hit OK.
71. So now as you can see user is member of Domain Admins and users, click apply and ok.
72. Let’s sign out and login with newly created domain admin.
73. Open Server manager and click on Add Roles & Features.
74. Click next on Before you begin window
75. Go with “Role-base installation” and hit Next.
76. Select Server and hit Next.
77. Click On “Remote Access” and hit next.
78. Will go with default in Select features window
79. Click next on Remote Access window.
80. In Select role services click on “Routing” and then click on Add Features.
81. “Routing” and “RAS” needs to be checked and we can hit Next.
82. Simply click on Next
83. Again click on Next.
84. Click on Install and wait for it to complete.
85. In Server Manager, on right side top click on Tools and from drop down select “Routing and Remote Access”
86. In Routing and Remote Access window, Right click on our domain and select “configure and enable routing and remote access”
87. Simply click Next on new window.
88. Select NAT and hit next
89. If you do not see “Network Interfaces” (Refer below screenshot) then you need to restart server and follow steps (85 to 89) again.
90. Select “Use this public interface to connect to the internet” and click on “10.0.2.15” INTERNET_NIC and just simply press next and finish. follow below screenshot.
91. Open server manager and click on “Add roles and features” and navigate till server roles ( follow below screenshot we will go with default option until “Server roles” window)
92. Select “DHCP Server” and click on Add Features and Hit Next.
93. Going with default option in Select features and hit next.
94. simply press Next
95. Press Install and till it completes.
96. Going back to server manager click on Tools and Select DHCP from drop down.
94. Click on Domain so it will expand itself and right click on IPv4 and click on “New Scope”
95. Press Next
96. Give any name in Name field and hit Next.
97. Give start IP address and End IP Address and define length and subnet mask.
98. if you want to add any exclusions then add then else click next.
99. will go with default Lease Duration and press Next.
100. Click on “Yes, I want to configure these options now” and hit Next.
101. Add DC ip as default Gateway IP and press Next.
102.Check Parent Domain and IP Adress and hit Next.
103. Will not add anything in WINS Servers and press Next.
104. Select “Yes, i want to activate this scope now” and press Next.
105. Press Finish.
106. Now right click on domain and click on “Authorize” and then again right click on it and press “Refresh”
107. Once it’s refresh you will see Green tick mark.
108. Let’s Create new Windows 10 VM. Follow below screenshot.
109. Will create offline user for initial login.
110. Once windows machine up and running install Guest Additions by following below steps.
111. Right click on start button and click on System.
112. click on Rename this PC(advanced)
113. Click on Change.
114. Give relevant computer name and in domain name give your domain name and hit OK.
115. once you click OK, apply super admin credential and hit OK.
116. Once it will authenticate you will see below screen “ Welcome to Domain”. click OK.
117. Click OK
118. Click Close
119. Click on Restart Now.
120. Click on “Other user”
121. In other user give Super Admin credential and press Enter.
122. Open cmd and type “Whoami” and you will see that you machine is now joined to your domain.
For Entire walkthrough follow below video:
!!Thanks!!