Estoy tratando de unir una computadora con Windows 11 que está en las premisas a un…
- User
Estoy tratando de unir una computadora con Windows 11 que está en las premisas a un Dominio Azure Entra Domain Services y me da este error al tratar de unirla: "The device is joined to Azure AD. To join an active directory domain you must first go to settings and choose to disconnect your device from your work or school"
- Assistant
It appears you're encountering this error because your Windows 11 device is currently Azure AD Joined, and you're trying to join it to an Azure Active Directory Domain Services (Azure AD DS) managed domain. Windows devices cannot be simultaneously joined to Azure AD and an Active Directory (AD) domain—whether it's an on-premises AD or Azure AD DS.
Here's how you can resolve this issue:
1. Ensure You Have a Local Administrator Account
Before proceeding, it's crucial to have a local account with administrative privileges on your device. This ensures you can access the device after disconnecting from Azure AD.
- Create a Local Admin Account:
- Press Windows key + X and select Computer Management.
- Navigate to Local Users and Groups > Users.
- Right-click in the empty space and select New User.
- Enter a User name and Password. Uncheck User must change password at next logon and check Password never expires.
- Click Create.
- Go to the Groups folder, open the Administrators group, and add the new user to this group.
2. Disconnect the Device from Azure AD
You'll need to disconnect your device from Azure AD before you can join it to the Azure AD DS domain.
- Steps to Disconnect:
- Go to Settings > Accounts > Access work or school.
- Find the account that says Connected to Azure AD.
- Select the account and click Disconnect.
- Confirm any prompts to disconnect. Your device may restart.
3. Connect the Device to the Azure AD DS Domain
Now that your device is not joined to Azure AD, you can proceed to join it to the Azure AD DS managed domain.
A. Ensure Network Connectivity to Azure AD DS
For on-premises devices to join Azure AD DS:
- Network Requirements:
- Establish a VPN or ExpressRoute connection from your on-premises network to the Azure virtual network where Azure AD DS is hosted.
- Ensure the device can resolve the domain name and reach Azure AD DS domain controllers.
- Open required ports in your firewall (e.g., TCP/UDP ports 389, 636 for LDAP, 88 for Kerberos).
B. Join the Device to the Domain
- Steps to Join:
- Go to Settings > System > About.
- Click Domain or workgroup under Related settings (this opens System Properties).
- In the Computer Name tab, click Change.
- Select the Domain option and enter the DNS domain name of your Azure AD DS managed domain (e.g.,
domain.com). - Click OK.
- When prompted, enter the credentials of an account that has permission to join computers to the domain (this could be a user account synchronized from Azure AD with appropriate privileges).
- Restart the device when prompted.
4. Verify Domain Join and Test Logon
-
After Restart:
- At the sign-in screen, click Other user.
- Log in using your domain credentials:
DOMAIN\UsernameorUsername@domain.com.
-
Confirm Domain Join:
- Go to Settings > System > About.
- Under Computer name, domain, and workgroup settings, confirm it shows the correct domain.
Additional Considerations
-
Azure AD DS Limitations:
- Azure AD DS is designed to provide traditional domain services in Azure for applications and virtual machines running in Azure.
- While it's possible to join on-premises computers to Azure AD DS, it requires reliable network connectivity and synchronization considerations.
-
Alternatives:
- If maintaining an on-premises Active Directory is feasible, consider setting up Azure AD Connect for directory synchronization and device Hybrid Azure AD Join.
- Utilize Intune and Azure AD Join for managing devices entirely through Azure AD without traditional domain join.
-
Permissions:
- Ensure the account used to join the domain has the necessary permissions in Azure AD DS.
- By default, the AAD DC Administrators group members have privileges to join an unlimited number of computers to the domain.
Troubleshooting Tips
-
DNS Issues:
- Ensure your device can resolve the Azure AD DS domain name. You might need to configure your device to use the Azure AD DS DNS servers.
-
Firewall Settings:
- Check that firewalls aren’t blocking the required ports for domain join and authentication.
-
Time Synchronization:
- Ensure the device's time is synchronized with Azure AD DS to prevent Kerberos authentication issues.
Let me know if you need further assistance or if you encounter any issues during this process.
- Create a Local Admin Account: