# How to Join a Windows 11 VM to an Active Directory Domain (Home Lab Guide)

Learn how to join a Windows 11 computer to a Windows Server 2022 Active Directory domain in your home lab. Step-by-step guide for IT beginners and sysadmins.

### Why Build a Simple Active Directory Lab?

If you're serious about a career in IT support or system administration, building a home lab is one of the best investments of your time. It gives you hands-on experience with real-world tools like Active Directory — the same tech used by many companies to manage users, devices, and policies.

In this guide, I’ll show you how to join a Windows 11 computer to your own AD domain — a core task every IT pro should know how to do. It’s quick, straightforward, and sets the foundation for more advanced lab scenarios.

### What You’ll Need

* A Windows Server 2022 VM with Active Directory Domain Services (AD DS) installed and configured
    
* A Windows 11 VM
    
* Both VMs on the same virtual network (via VirtualBox, Hyper-V, VMware, etc.)
    
* Your domain name (e.g., `mcnairtech.local`)
    
* Admin credentials for your domain
    

### Step 1: Point the Windows 11 Client to the Correct DNS Server

Active Directory relies heavily on DNS, so make sure your Windows 11 VM is using your domain controller’s IP as its DNS server.

1. Go to **Settings &gt; Network & Internet &gt; Ethernet (or Wi-Fi) &gt; Edit IP assignment**
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751237615051/c573cc4b-e3f7-47ec-a115-5ee85ad62d64.png align="center")
    
2. Change the DNS settings to **Manual**
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751237760750/cdb414a8-a33e-4a9c-acfe-3a1025277f63.png align="center")
    
3. Set the **Preferred DNS** to your DC’s IP address (e.g., 192.168.50.254)
    
4. Click **Save**
    

**Pro Tip:** If your DNS is misconfigured, the domain join will fail — even if everything else is perfect. This is because Active Directory heavily relies on DNS to locate domain controllers and other essential services within the network. When your Windows 11 client tries to join the domain, it queries DNS for the domain controller's address. If the DNS server is not set to your domain controller’s IP or cannot resolve the domain name, your client won’t be able to find the controller, causing the domain join process to fail.

### Step 2: Join the Windows 11 Computer to the Domain

1. Open **Settings &gt; System &gt; About**
    
2. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751238147952/0832c6aa-33b1-43b6-8290-7db5628d0cb6.png align="center")
    

2. Scroll down and click **Domain or Workgroup**
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751238440877/35973f62-139c-40ed-b306-58c13e2b8c08.png align="center")

3. Select **Join this device to a local Active Directory domain**
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751238738368/40dd3388-e4f3-4284-84fd-4c360b0d75a5.png align="center")

4. Enter your domain name (e.g., `mcnairtech.local`)
    
5. Provide domain admin credentials (like `Administrator`)
    
6. Reboot when prompted
    
    After restarting, your computer will be part of the domain.
    

### Step 3: Test the Domain Join

1. On the Windows 11 login screen, choose **Other user**
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751238879866/c31711cf-5fc3-4f7e-b8c8-072afe8726c9.png align="center")

2. Enter the domain and username, such as:  
    `MCNAIRTECH\Administrator`
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751239025005/d994932c-f3b4-4ed9-ae3c-e610c4e0209b.png align="center")

3. Once logged in, open **Command Prompt** and run: `whoami`
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1751239154782/edde72fd-4f82-457c-942e-fd83c83aa1aa.png align="center")

4. You can also test by running:
    
    `gpupdate /force`
    

If Group Policy updates successfully, you're connected.

### What’s Next?

* Create a new user in Active Directory and log in from the Windows 11 VM
    
* Apply a basic Group Policy (like a custom desktop background or password policy)
    
* Set up DHCP and DNS roles on the domain controller
    
* Build toward a multi-site or multi-domain environment
    

The more you experiment, the more confident you’ll get with AD — and the closer you are to becoming job-ready.

### Wrapping Up

Joining your Windows 11 VM to an Active Directory domain might seem small, but it’s a key step in getting comfortable with Windows networking and domain management. Once you’ve done this, you’ll have a solid foundation to start exploring more complex AD features in your lab.

If you found this helpful, bookmark the site or share it with someone else working on their IT skills. More easy-to-follow lab guides are coming soon!
