Question: how to replicate domain controller windows 2012 r2?
Answer: Open Server Manager. ... 
On the Select installation type page, click Role-based or feature-based installation and click Next.
On the Select destination server page, click Select a server from the server pool, click the name of the server where you want to install AD DS and then click Next.