From Server Manager – click Manage – Add Roles and Features.
Click Next and Next on Select installation type for Role-based installation.
Select the server you want to install your first domain controller – click next. Place a check in Active Directory Domain Services.
Click Add Features on the box that pops up for ADDS.
Domain Controller Options – choose your forest and domain functional level. In this example, I am going with Windows Server 2016 because I don’t need to add any older DCs. Specify domain controller capabilities – Select DNS and GC is already added if this is your first DC. Choose and enter a DSRM password and click Next.
Verify and click Next on the Paths page. Review your options and click Next. Prerequisites Check – review the results and click Install.