Transferred from: https://technet.microsoft.com/zh-cn/cloud/gg462955.aspx
First, the domain controller installation steps:
1. Install Windows Server R2 and configure the computer name and IP address (see appendix I)
2, click "Start", in "Search Programs and Files" Enter Dcpromo.exe and press ENTER;
3, such as the preparation to enter the domain controller installation;
4. Go to the AD DS Installation Wizard and click "Next";
5, in operating system compatibility, click "Next";
6. Select "Create Domain in New Forest" and click "Next";
7. Enter the domain name "contoso.com" and click "Next";
8, select the appropriate forest functional level level (recommended to use Windows Server R2), then click "Next";
9. In the other domain controller options, click "Next";
10, click "Yes", continue to install;
11, in the specified database, log files and SYSVOL location, click "Next";
12. After entering the Directory Service Restore Mode password, click "Next";
13, review the AD DS related configuration, click "Next" to enter the Active Directory installation process;
14, after the installation is complete, click "OK" and then click "Restart Now", such as;
15. After restarting, log on to the domain controller using the domain administrator account.
Go Windows Server R2 Domain Controller Deployment Guide