Setting Up an AD Domain Using a Windows ECS
Scenarios
Active Directory (AD) is an independent unit in a network. To allow AD domains to access each other, you need to establish trust relationships between them. In this way, different AD domains can share and manage network resources, communicate with each other, and transmit data. This section uses Windows Server 2022 as an example to describe how to set up and use an AD domain.
Advantages
- Simplified IT management: In large enterprises or organizations, AD domains are used to centrally manage a large number of computers and user accounts to simplify IT management processes.
- Improved security: AD domains can authenticate and authorize users to ensure that only authorized users can access resources.
- Unified resource access: With AD domains, users can use a unified account and password to log in to any computer on the network and access other network resources.
- Remote access: AD domains support Virtual Private Network (VPN) to allow remote users to access internal enterprise resources through secure channels. This is very practical for employees who are on business trips, as it can improve work efficiency.
Prerequisites
You have purchased two Windows ECSs. One ECS is used as the domain controller (DC) of the AD domain, and the other ECS is used as the client to join the domain. For details about how to purchase an ECS, see Purchasing an ECS in Custom Config Mode.
Process
The process for setting up an AD domain using a Windows ECS is as follows:
Step 1: Deploy an AD Domain Controller
- Log in to the ECS where the domain controller is to be deployed.
- In the lower left corner of the desktop, enter Server Manager in the search box.
- Click Server Manager.
- In Server Manager, add roles and features.
In this example, deploy the AD domain services and DNS service on the same ECS.
- Click Add roles and features.
- In the Before You Begin step, click Next.
- Select Role-based or feature-based installation and click Next.
- Select the ECS where roles and features are to be installed and click Next.
- Select roles Active Directory Domain Services and DNS Server, and click Next.
- Click Next until the confirmation page is displayed. Click Install.
- After the installation is complete, click Close.
- Click Add roles and features.
- Set this ECS as a domain server.
- Click the
icon in Server Manager and click Promote this server to a domain controller.
- In the Active Directory Domain Services Configuration Wizard dialog box, select Add a new forest, enter the root domain name, and click Next.
In this example, the domain name is example.com.
- In the Domain Controller Options step, set the password under Type the Directory Services Restore Mode (DSRM) password, and click Next.
- Configure DNS options and click Next.
- Configure the NetBIOS domain name and click Next.
- Specify the locations of the AD DS database, log files, and SYSVOL folders, and click Next.
- Check and confirm the settings in the previous steps and click Next.
- After all prerequisites are met, click Install.
After the installation is complete, the ECS automatically restarts.
Reconnect to the ECS, click Server Manager, and choose Tools > Active Directory Users and Computers. You can see a user named Administrator in the Active Directory Users and Computers window. This indicates that the installation is successful.
- Click the
Step 2: Add the Client to the AD Domain
- Remotely log in to the other ECS. This ECS serves as a client.
- Change the DNS server address of this ECS.
Change the DNS server address of this ECS to the IP address of the deployed DNS server. In Step 1: Deploy an AD Domain Controller, the AD domain service and DNS service are deployed on the same ECS (IP address: 192.168.0.91). Therefore, the DNS server address is 192.168.0.91.
- Check whether the IP address of the DNS server can be pinged.
If the ping is successful, the configuration is correct.
- Add the client to the AD domain.
- Go to the Advanced system settings page and click Change.
- On the Computer Name/Domain Changes page, configure the AD domain information.
Enter the root domain name of the AD domain set in Step 1: Deploy an AD Domain Controller. In this example, the root domain name is example.com.
- If the message "Welcome to the example.com domain" is displayed, the ECS has been added to the AD domain. The ECS can be used after being restarted.
- Go to the Advanced system settings page and click Change.
FAQs
Symptom
If the message is displayed, indicating that the ECS cannot be added to the AD domain because the domain SID is the same as the ECS SID, use the Sysprep tool provided by Windows to change the SID.
Solution
- Go to Windows/System32/Sysprep and find Sysprep.exe.
- Run Sysprep.exe as an administrator, select Generalize, and click OK.
- After the system is restarted, the SID is changed. Reconfigure the domain by referring to Step 1: Deploy an AD Domain Controller and try to join the domain again.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot