🚀 How to Install and Configure Active Directory (AD) in Windows Server
Requirements: ✅ A Windows Server 2019 or 2022 (clean installation)
✅ A static IP address configured
✅ Administrator access
Step 1: Set a Static IP Address
Before installing Active Directory, ensure your server has a static IP.
🔹 To set a static IP:
- Go to Control Panel → Network and Sharing Center
- Click Change adapter settings
- Right-click Ethernet → Select Properties
- Select Internet Protocol Version 4 (TCP/IPv4) → Click Properties
- Enter a static IP (e.g.,
192.168.1.10
)- Subnet Mask:
255.255.255.0
- Default Gateway:
192.168.1.1
- Preferred DNS:
127.0.0.1
(or your own DNS server)
- Subnet Mask:
- Click OK and close all windows
Step 2: Install Active Directory Domain Services (AD DS)
- Open Server Manager
- Click Manage → Select Add Roles and Features
- Choose Role-based or feature-based installation → Next
- Select your server → Click Next
- Select Active Directory Domain Services (AD DS)
- Click Add Features when prompted
- Click Next until you reach the Confirmation page
- Click Install and wait for completion
Step 3: Promote the Server to a Domain Controller
After installation, you need to promote the server to a Domain Controller.
- Go to Server Manager → Click ⚠️ Notification Flag (top-right)
- Click Promote this server to a domain controller
- Choose Add a new forest (if you are setting up a new domain)
- Enter your domain name (e.g.,
mycompany.local
) → Next - Set Domain Functional Level & Forest Functional Level to
Windows Server 2016
(or newer) - Check the box Domain Name System (DNS) Server
- Set a DSRM password (for recovery purposes) → Next
- Click Next until you reach the Prerequisites Check
- Click Install (this will restart the server)
Step 4: Verify the Active Directory Installation
After the server reboots, verify that AD DS is running.
- Open Active Directory Users and Computers (ADUC)
- Press Win + R, type
dsa.msc
, and press Enter
- Press Win + R, type
- Check if your domain is listed
- Open Active Directory Domains and Trusts
- Press Win + R, type
domain.msc
, and press Enter
- Press Win + R, type
- If everything looks good, AD is installed successfully! ✅
Step 5: Create User Accounts and Groups (Optional)
- Open Active Directory Users and Computers (ADUC)
- Right-click Users → Select New → User
- Enter Username, Password, and Security settings
- Click Finish to create the user
Step 6: Join Client Computers to the Domain
To add Windows workstations (Windows 10/11) to your domain, follow these steps:
- On the client computer
- Right-click This PC → Properties
- Click Change settings → Change
- Under Member of, select Domain
- Enter your domain name (e.g.,
mycompany.local
)
- Enter the Administrator credentials
- Restart the client computer
- Now, users can log in using their AD domain accounts 🎉
✅ Done!
Now your Windows Server 2019/2022 is running Active Directory Domain Services (AD DS). 🚀
Conclusion
Setting up Active Directory (AD) on Windows Server is a crucial step in managing users, security, and network resources efficiently. By following this guide, you’ve successfully installed AD DS, promoted your server to a domain controller, and connected client computers to your domain.
With Active Directory, your IT infrastructure is now more secure, scalable, and manageable. You can further enhance your setup by implementing Group Policies, DNS configurations, and user role management.