Domain join

Also known as: join a domain

On this page 7

Domain join is the process that makes a Windows computer a trusted member of an Active Directory domain, so that users can sign in with domain accounts and administrators can manage the device centrally. In Windows networking, joining a domain creates a computer account in Active Directory Domain Services, establishes a secure channel with domain controllers and switches authentication from local accounts to Kerberos.

Once a computer has been joined, it receives Group Policy, domain security groups gain local rights, and network resources such as file shares and printers can be accessed with single sign-on. To join a domain is therefore the foundation of classic on-premises Windows administration in companies, schools and public institutions.

How a Windows domain join works

A domain join is a short negotiation between the client and a domain controller. The computer locates a controller through DNS service records, authenticates with an account that has permission to join, creates or reuses a computer object and sets a machine account password that both sides store.

The sequence below shows the main steps in order.

  1. The client queries DNS for _ldap._tcp.dc._msdcs records to find a domain controller.
  2. It authenticates with credentials that may create computer accounts.
  3. A computer object is created in the default Computers container or a pre-staged organizational unit.
  4. Client and controller agree on a machine account password, which forms the secure channel.
  5. Domain groups are added to local groups, and a restart completes the change.

After the restart, the Netlogon service maintains the secure channel and rotates the machine password, by default every 30 days. Group Policy processing begins at startup and sign-in, and users can authenticate with domain credentials.

The following table lists the network services a client must reach during and after joining.

ServicePortPurpose
DNS53 TCP and UDPLocating domain controllers
Kerberos88 TCP and UDPAuthenticating users and computers
LDAP389 TCP and UDPReading and writing directory objects
SMB445 TCPGroup Policy files in SYSVOL
RPC endpoint mapper135 TCP plus dynamic portsNetlogon and management calls
Network services used by a domain-joined client

Requirements and permissions

Domain join is available only on business editions of Windows, namely Pro, Enterprise and Education; Windows Home cannot join a domain. The client must also use DNS servers that resolve the domain, which usually means the domain controllers themselves or DNS servers forwarding to them.

Permissions matter as much as connectivity. By default, any authenticated user may join up to 10 computers because of the ms-DS-MachineAccountQuota attribute, but many organizations set it to zero and delegate join rights on specific organizational units to a support group. Pre-staging computer objects in the correct OU ensures that the right Group Policy applies from the first startup.

Methods to join a domain

Windows offers several ways to join a domain, from interactive dialogs to fully scripted and offline methods. The choice depends on scale, connectivity to a controller and how much of the provisioning is automated.

This table compares the common methods and their typical use.

MethodTool or locationTypical use
System Propertiessysdm.cpl, Computer Name tabSingle computer joined by a technician
Settings appAccounts, Access work or schoolInteractive join on Windows 10 and 11
PowerShellAdd-Computer -DomainName -OUPath -RestartScripted joins and deployment tasks
Offline domain joindjoin.exe provisioning blobNo controller reachable during setup
Unattended setupAnswer file or deployment toolMass imaging of new computers
Common domain join methods

Domain join compared with workgroup and Microsoft Entra join

A domain join differs from a workgroup, where every computer keeps its own accounts, and from Microsoft Entra join, where the device registers with the cloud directory instead of on-premises Active Directory. Hybrid join combines both, keeping the on-premises join while registering the device in Microsoft Entra ID.

The comparison below shows how these membership models differ in practice.

ModelIdentity sourceManagementTypical environment
WorkgroupLocal accounts on each PCManual per deviceHomes and very small offices
Active Directory domain joinOn-premises domain controllersGroup Policy, configuration toolsTraditional corporate networks
Microsoft Entra joinCloud directoryMobile device managementCloud-first organizations
Hybrid joinBoth directoriesGroup Policy plus cloud managementOrganizations in transition
Device membership models in Windows

For remote workers, a domain-joined laptop needs line of sight to a domain controller for password changes and policy refresh, typically through Always On VPN or DirectAccess. This dependency is one reason many organizations now prefer cloud joins for new devices.

Common problems and how to fix them

Most failures come from DNS misconfiguration, missing permissions or a broken secure channel. A client pointed at a public DNS resolver cannot find SRV records and reports that the domain controller could not be contacted.

The table below matches frequent symptoms with their cause and remedy.

SymptomLikely causeFix
Domain controller could not be contactedClient uses external DNSPoint DNS to domain DNS servers
Access denied during joinNo join rights or quota reachedDelegate rights or pre-stage the account
Trust relationship failed at sign-inMachine password out of syncRun Test-ComputerSecureChannel -Repair
Account already existsStale object with same nameReset or delete the old computer object
Clock skew errorsTime differs by over 5 minutesSynchronize time with the domain
Troubleshooting domain join issues

Restoring an old system image or snapshot is a classic trigger of trust relationship errors, because the image contains an outdated machine password. Repairing the secure channel is usually faster and safer than removing the computer from the domain and joining it again.

The simple explanation

Joining a domain is like registering a new employee badge with a company building. Before registration, the computer only knows its own users. After it joins, it trusts the central company directory, so staff can sign in with their work account on any joined computer.

It also lets the IT team set rules for all computers at once, such as screen locks or software settings, instead of visiting each desk.

How it is used in practice

An accounting firm with 40 employees replaces its laptops. The administrator pre-stages computer accounts in an organizational unit named Laptops, where Group Policy enforces BitLocker, screen locking after 10 minutes and mapped network drives. Join rights are delegated to the support team, and the machine account quota is set to zero.

During setup, each technician runs Add-Computer with the target OU and restarts the device. Within an hour, all 40 laptops are joined, users sign in with existing credentials, and policies apply automatically at first startup. One laptop reports a DNS error because it was connected to a guest network; switching it to the office network resolves the problem in minutes.