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.
- The client queries DNS for
_ldap._tcp.dc._msdcsrecords to find a domain controller. - It authenticates with credentials that may create computer accounts.
- A computer object is created in the default Computers container or a pre-staged organizational unit.
- Client and controller agree on a machine account password, which forms the secure channel.
- 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.
| Service | Port | Purpose |
|---|---|---|
| DNS | 53 TCP and UDP | Locating domain controllers |
| Kerberos | 88 TCP and UDP | Authenticating users and computers |
| LDAP | 389 TCP and UDP | Reading and writing directory objects |
| SMB | 445 TCP | Group Policy files in SYSVOL |
| RPC endpoint mapper | 135 TCP plus dynamic ports | Netlogon and management calls |
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.
| Method | Tool or location | Typical use |
|---|---|---|
| System Properties | sysdm.cpl, Computer Name tab | Single computer joined by a technician |
| Settings app | Accounts, Access work or school | Interactive join on Windows 10 and 11 |
| PowerShell | Add-Computer -DomainName -OUPath -Restart | Scripted joins and deployment tasks |
| Offline domain join | djoin.exe provisioning blob | No controller reachable during setup |
| Unattended setup | Answer file or deployment tool | Mass imaging of new computers |
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.
| Model | Identity source | Management | Typical environment |
|---|---|---|---|
| Workgroup | Local accounts on each PC | Manual per device | Homes and very small offices |
| Active Directory domain join | On-premises domain controllers | Group Policy, configuration tools | Traditional corporate networks |
| Microsoft Entra join | Cloud directory | Mobile device management | Cloud-first organizations |
| Hybrid join | Both directories | Group Policy plus cloud management | Organizations in transition |
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.
| Symptom | Likely cause | Fix |
|---|---|---|
| Domain controller could not be contacted | Client uses external DNS | Point DNS to domain DNS servers |
| Access denied during join | No join rights or quota reached | Delegate rights or pre-stage the account |
| Trust relationship failed at sign-in | Machine password out of sync | Run Test-ComputerSecureChannel -Repair |
| Account already exists | Stale object with same name | Reset or delete the old computer object |
| Clock skew errors | Time differs by over 5 minutes | Synchronize time with the domain |
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.