# Setting Up Server as Active Directory Domain Controller

Keeping it simple, select install Active Directory Domain Services and DNS Server, via Manage ---&gt; Add Roles and Features.

After installation, promote your Windows server to a Domain Controller :

[![image.png](https://austinhomelabs.com/uploads/images/gallery/2024-03/scaled-1680-/nrbqPz828FVBuANm-image.png)](https://austinhomelabs.com/uploads/images/gallery/2024-03/nrbqPz828FVBuANm-image.png)

A Deployment Configuration Wizard screen will pop-up. This step is important to properly setting up active directory services! Select Add a new Forest to begin the configuration wizard:

[![image.png](https://austinhomelabs.com/uploads/images/gallery/2024-03/scaled-1680-/qQ0QPPitZsyXHpvg-image.png)](https://austinhomelabs.com/uploads/images/gallery/2024-03/qQ0QPPitZsyXHpvg-image.png)

- Here you can see I've entered AD.testlab.home as my Root Domain Name

[![image.png](https://austinhomelabs.com/uploads/images/gallery/2024-03/scaled-1680-/JfDIWlmFg3JXmaaL-image.png)](https://austinhomelabs.com/uploads/images/gallery/2024-03/JfDIWlmFg3JXmaaL-image.png)

- Here you can set levels if you plan on connecting other Windows Servers. For my purposes, I'll be keeping it at its default of Windows Server 2016
- Set your DSRM password and store it safely.

If you're setting this up in a test environment, you'll likely see the following warning pop-up. For our purposes, this is okay:

[![image.png](https://austinhomelabs.com/uploads/images/gallery/2024-03/scaled-1680-/cUxJZSi9fegvSBPD-image.png)](https://austinhomelabs.com/uploads/images/gallery/2024-03/cUxJZSi9fegvSBPD-image.png)

Click through Additional Options, Paths, and Review Options to get to the prerequisite checks:

[![image.png](https://austinhomelabs.com/uploads/images/gallery/2024-03/scaled-1680-/gq1nokWkrkCuQSqs-image.png)](https://austinhomelabs.com/uploads/images/gallery/2024-03/gq1nokWkrkCuQSqs-image.png)

- Again, these warnings are okay for test environments. For production, you'll want to acknowledge them and make changes accordingly.
- After installation, the server will need to restart, and you should now be able to log in as Domain Administrator, which should say AD/administrator:

[![image.png](https://austinhomelabs.com/uploads/images/gallery/2024-03/scaled-1680-/v4NbP51DIRlVmAOu-image.png)](https://austinhomelabs.com/uploads/images/gallery/2024-03/v4NbP51DIRlVmAOu-image.png)

Useful Tips:

- If you're like me, you're using an evaluation copy of Windows and don't have any plans of purchasing a costly license anytime soon. To rearm the license and reset the count back to 180 days, run the following command in PowerShell: 
    - ```powershell
        slmgr -rearm
        ```