how to create domain controller in windows server 2019

- Install Windows Server 2019 on a computer that will be used as the domain controller.
- Log in to the server as an administrator.
- Open the Server Manager by clicking on the Server Manager icon on the taskbar or by pressing the Windows key + X and selecting Server Manager.
- In the Server Manager, click on the “Add roles and features” option in the Dashboard.
- In the Add Roles and Features Wizard, select “Role-based or feature-based installation” and click Next.
- Select the server that will be used as the domain controller and click Next.
- Select “Active Directory Domain Services” from the list of server roles and click Next.
- Review the information in the “Active Directory Domain Services” window and click Next.
- Click on the “Install” button to install the Active Directory Domain Services role.
- Once the installation is complete, click on the “Promote this server to a domain controller” link in the Server Manager.
- In the “Active Directory Domain Services Configuration Wizard”, select “Add a new forest” and enter a root domain name.
- Set the forest functional level and domain functional level according to your requirements.
- Set the Directory Services Restore Mode (DSRM) password.
- Review the information in the “DNS Options” window and click Next.
- Configure the NetBIOS domain name and click Next.
- Choose the location for the Active Directory database, log files, and SYSVOL folder and click Next.
- Review the information in the “Review Options” window and click Next.
- Click on the “Install” button to start the domain controller installation process.
- Once the installation is complete, click on the “Close” button to exit the Active Directory Domain Services Configuration Wizard.