click on the Server Manager icon which is the management tool in Windows Server 2016.
Active Directory Domain Services is a Windows Server role. Click on Add Roles and features the option to install the role.
In the wizard click on Next.
In installation type selection, let the default selection run and click on Next.
For the server, selection leaves the default and click Next.
From the role selection window select “Active Directory Domain Services” click next. Then it will ask to add the dependent features. Click on add features button. Then click Next.
5Select the Active Directory Domain Services role. A new window opens and asks you to install management tools. Installing AD DS role, you just install the core services. Click on Add Features button to install management tools. then click on Next button.
In the features, selection will keep the default selection and then click Next to continue.
In the Feature page, you got nothing to do. Just click on Next button. In the Active Directory Domain Services page, you can read some information about AD DS. Click on Next button to move in the next page.
Then in next window click on install button to install AD DS role.
Once it is finished, Click on close
Successfully install Active Directory Domain Services