大网数据广告活动
域与目录服务

Error (The computer must be joined to a domain) when you try to install the Azure Active Directory Sync Tool

· 52CE 我爱测

Describes an error message that occurs when you try to install the Azure Active Directory Sync Tool. Provides a resolution.

Summary

This article provides guidance on resolving the "The computer must be joined to a domain." error when you try to install the Azure Active Directory Sync Tool.

Original product version:   Cloud Services (Web roles/Worker roles), Microsoft Entra ID, Microsoft Intune, Azure Backup, Office 365 Identity Management
Original KB number:   2419250

Symptoms

When you try to install the Microsoft Azure Active Directory Sync Tool, you may receive the following error message:

The computer must be joined to a domain.

Cause

This issue may occur if the computer isn't joined to an Active Directory Domain Services (AD DS) domain or if the computer doesn't register a host (A) resource record with its Domain Name System (DNS).

Resolution

To resolve this issue, use one of the following methods.

Method 1: Computer isn't joined to an AD DS domain

Join the computer to an AD DS domain. To do this, follow these steps:

  1. On the computer that you want to join to a domain, select Start, select Control Panel, and then double-click System.
  2. Under Computer name, domain, and workgroup settings, select Change settings.
  3. On the Computer Name tab, select Change.
  4. Under Member of, select Domain, type the name of the domain that this computer will join, and then select OK.
  5. Select OK, and then restart the computer.

Method 2: Computer is already joined to an AD DS domain

If the computer is already joined to an AD DS domain, make sure that the computer's DNS settings are correct and that a host (A) resource record for the computer is registered with DNS. To do this, follow these steps:

  1. Open Network Connections.

  2. Right-click the network connection that you want to set up, and then select Properties.

  3. Do one of the following, as appropriate for the connection that you want to set up:

    • For a local area connection: On the General tab, select Internet Protocol (TCP/IP), and then select Properties.
    • For all other connections: On the Networking tab, select Internet Protocol (TCP/IP), and then select Properties.
  4. If you want to obtain DNS server addresses from a Dynamic Host Configuration Protocol (DHCP) server, select Obtain DNS server address automatically.

  5. If you want to configure DNS server addresses manually, select Use the following DNS server addresses. In the Preferred DNS server box, type the IP addresses of the preferred DNS server. In the Alternate DNS server box, type the IP addresses of the alternative DNS server.

  6. Select OK two times, and then close Network Connections.

  7. At a command prompt, type the following commands, and press ENTER after each command:

    ipconfig /flushdns
    
    ipconfig /registerdns
    
  8. If the issue isn't resolved, restart the computer that has Directory Sync Tool installed.

  9. If the issue still isn't resolved, make sure that the computer that has the Directory Sync Tool is installed can communicate with the computer that's running AD DS.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 06/22/2020
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。