Skip to main content

Windows 11 Cannot Join Domain — How to Fix

Fix common issues preventing a Windows 11 PC from joining an Active Directory domain, including DNS, secure channel, and account limit errors.

6 min readUpdated March 29, 2026
Info

For cloud-managed environments, consider Microsoft Entra join instead of traditional domain join — see our Intune enrollment guide. Microsoft Entra join (cloud-only) is now the preferred approach for cloud-first organisations.

Overviewsection

Joining a Windows 11 PC to an Active Directory domain should be straightforward, but it fails more often than you would expect. The most common error messages are:

  • "The specified domain either does not exist or could not be contacted"
  • "The join operation was not successful"
  • "Your computer could not be joined to the domain — the maximum number of computer accounts has been reached"
  • "Access is denied"

This guide covers every common cause and fix, ordered by likelihood.

Fix 1: DNS Configuration (Most Common)section

The number one reason domain join fails is that the PC cannot find the domain controller because its DNS is pointing to the wrong server.

Check current DNSsection

powershell
ipconfig /all | findstr "DNS Servers"

The DNS server must point to a domain controller (or a DNS server that hosts the AD-integrated zone). If it points to 8.8.8.8, 1.1.1.1, or your ISP's DNS, domain join will fail.

Fix DNSsection

powershell
# Set DNS to the domain controller IP (replace with your DC's IP)
Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses "192.168.1.10","192.168.1.11"

Verify DNS resolutionsection

powershell
# This must resolve to your domain controller(s)
nslookup corp.example.com

# SRV records must exist
nslookup -type=SRV _ldap._tcp.dc._msdcs.corp.example.com

If nslookup fails, DNS is the problem. Fix it before trying anything else.

Tip

On a DHCP network, configure the DHCP scope options to hand out domain controller IPs as DNS servers. This prevents the issue from recurring on new devices.

Fix 2: Network Connectivitysection

The PC must be able to reach the domain controller on the correct ports.

Test connectivitysection

powershell
# Test LDAP
Test-NetConnection -ComputerName "dc01.corp.example.com" -Port 389

# Test Kerberos
Test-NetConnection -ComputerName "dc01.corp.example.com" -Port 88

# Test DNS
Test-NetConnection -ComputerName "dc01.corp.example.com" -Port 53

# Test SMB (for Group Policy download)
Test-NetConnection -ComputerName "dc01.corp.example.com" -Port 445

All four tests must succeed. If any fail, check:

  • Firewall rules on the PC and DC
  • VPN connectivity (if joining remotely)
  • VLAN/subnet routing between the PC and DC

Fix 3: Computer Account Limit Reachedsection

By default, authenticated users can join up to 10 computers to the domain. After that, you get "the maximum number of computer accounts has been reached."

Check the current limitsection

powershell
# Run on the domain controller
Get-ADDomain | Select-Object -ExpandProperty ms-DS-MachineAccountQuota

Fix — Pre-stage the computer accountsection

Instead of increasing the limit (which is a security risk), pre-stage the computer account:

  1. Open Active Directory Users and Computers on the DC
  2. Navigate to the target OU
  3. Right-click > New > Computer
  4. Enter the computer name
  5. On the PC, join the domain — it will use the pre-staged account

Alternatively, delegate domain join rights to a specific group:

powershell
# Grant a group the right to join computers to a specific OU
dsacls "OU=Workstations,DC=corp,DC=example,DC=com" /G "CORP\IT-Staff:CC;computer"

Fix 4: Secure Channel Broken (Rejoining)section

If a PC was previously joined and its computer account password has expired (common after being off the network for 30+ days), you will see "the trust relationship between this workstation and the primary domain failed."

Fix without reimagingsection

powershell
# Run as local admin on the affected PC
# Remove from domain (use local admin credentials)
Remove-Computer -UnjoinDomainCredential (Get-Credential) -Force -Restart

# After reboot, rejoin the domain
Add-Computer -DomainName "corp.example.com" -Credential (Get-Credential) -OUPath "OU=Workstations,DC=corp,DC=example,DC=com" -Restart

Or reset the secure channel without removing/rejoining:

powershell
# Run as a domain user with rights to reset the computer account
Test-ComputerSecureChannel -Repair -Credential (Get-Credential)

Fix 5: Time Synchronisationsection

Kerberos authentication fails if the time difference between the PC and domain controller exceeds 5 minutes.

Check time differencesection

powershell
# On the PC
w32tm /stripchart /computer:dc01.corp.example.com /dataonly /samples:3

Fixsection

powershell
# Force time sync to the domain controller
w32tm /resync /force

If the PC is not yet domain-joined, manually set the time or configure NTP:

powershell
Set-Service -Name w32time -StartupType Automatic
Start-Service w32time
w32tm /config /manualpeerlist:"dc01.corp.example.com" /syncfromflags:manual /update
w32tm /resync

Fix 6: Windows 11 Editionsection

Windows 11 Home cannot join an Active Directory domain. This is a hard limitation — no workaround exists.

Check editionsection

powershell
(Get-CimInstance -ClassName Win32_OperatingSystem).Caption

If it reports "Windows 11 Home", the PC must be upgraded to Pro, Enterprise, or Education.

Upgrade from Home to Prosection

  1. Go to Settings > System > Activation
  2. Click Change product key
  3. Enter a Windows 11 Pro product key
  4. Restart and attempt domain join again

Fix 7: IPv6 Issuessection

In some network configurations, IPv6 can interfere with domain join, especially if IPv6 DNS resolution returns incorrect results.

Temporary fixsection

Disable IPv6 on the network adapter:

powershell
Disable-NetAdapterBinding -Name "Ethernet" -ComponentID ms_tcpip6
Warning

Only disable IPv6 as a troubleshooting step. If domain join succeeds with IPv6 disabled, investigate your IPv6 DNS and routing configuration rather than leaving it permanently disabled.

Diagnostic Summarysection

Error MessageLikely CauseFirst Fix
"The specified domain does not exist"Wrong DNS serversSet DNS to domain controller
"Maximum number of computer accounts"10-machine limitPre-stage account or delegate rights
"Access is denied"Insufficient permissionsUse a domain admin account or pre-stage
"Trust relationship failed"Stale computer accountReset secure channel or rejoin
"The RPC server is unavailable"Network/firewall blockingTest ports 88, 389, 445, 53
"The specified network name is no longer available"SMB connectivity issueCheck port 445 and SMB signing settings

Need help with a domain join?section

Get on-demand remote IT support for a device that still cannot join your domain. If domain joins, onboarding, and access issues affect several employees, compare our managed IT support plans.

Windows 11Active DirectoryDomain JoinDNSTroubleshooting

Was this article helpful?