HOW TO SETUP ACTIVE DIRECTORY ON WINDOWS SERVER 2022
Below prerequisites that needed to proceed with this documentation:
- Change Computer Name
- Adjust Date/Time and Timezone
- Set Static IP
- Available Disk Space on Server
Note: If the server is on a Virtualization Environment you need to install the integrated tools on it for example vmware has VMware Tools, vbox has Guest Additions CD Image .. and so on
Step 1: Open Server Manager
From Dashboard select option 2 Add roles and features

Step 2: Add Role and Features
Click Next

Step 3: Installation Type
Select Role-based or feature-based installation then click Next :

Step 4: Server Selection
Select server you want to make it as and AD DC then Click Next

Step 5: Server Roles:
Active Directory needs a DNS server to work with, so we will install both them together so select first the Active Directory Domain Services then next select DNS Server:

Step 6: Add Features
Once you select Active Directory Domain Services this window will appear for you to confirm the feature to add click Add Features:

Once you select DNS Server this window will appear for you to confirm the feature to add click Add Features:

Step 7 Select Features
Click Next:

Step 8: AD DS (Domain Service )
Click Next:

Step 9: DNS Server
Click Next:

Step 10: Confirm your Selections
Click Install:

The Installation is starting

Don’t Close this window once the installation finish check the Step 11:

Step 11: Promote to DC
Click link Promote the server to domain controller as shown in below screenshot:

Or If you closed the installation windows you can find this link in the Server Manager Task Details (Flag Icon):

Select Add a new forest and give a root domain name that you wish, mine is icyb3rlab.com :

Set a password then click Next:

Click Next :

Click Next:

Click Next:

Click Next:

Click Install if the Prerequisites check success:

Step 12: DNS Reverse Lookup Zone
We can create reverse DNS by below steps, Reverse DNS allow us to query the DNS using IP to get the Domain Name.

Right Click on Reverse Lookup Zones then New Zone





Here you can Enter the Network ID you want the DNS to Lookup up For:




Step 13: Add DNS IP to Server

Step 13: Create AD Objects

To Add organization unit (OU) click on the Icon like in the below screenshot:


Add User to that (OU):




