Question: how to install active directory 2012 r2?
Answer: Open the Server Manager from the task bar.
From the Server Manager dashboard, select Add roles and features. ... 
On the Installation Type screen, select Role-based or features-based and click Next. ... 
By default, the current server is selected.