Device Identity: Entra Joined vs Hybrid vs Registered
Architecture, token flows, Primary Refresh Token (PRT), and troubleshooting for Microsoft Entra Joined, Hybrid Entra Joined, and Entra Registered states.
Overview
Microsoft Entra ID recognizes three distinct device identity states for managing endpoint access to cloud resources:
- Microsoft Entra Joined: Modern, cloud-native devices joined exclusively to Microsoft Entra ID. No dependency on on-premises Active Directory Domain Services (AD DS). Users sign in with corporate cloud identities (
user@company.com). - Microsoft Entra Hybrid Joined: Devices joined to an on-premises Active Directory domain and registered with Microsoft Entra ID via Microsoft Entra Connect Sync or Cloud Sync. Users sign in using traditional Active Directory credentials (
DOMAIN\user). - Microsoft Entra Registered (Workplace Joined): Personally owned devices (BYOD) or mobile phones (iOS/Android/Windows) registered to Entra ID to receive a device identity for Conditional Access and Single Sign-On (SSO) without giving the organization full device management control.
All three states rely on the Primary Refresh Token (PRT) to enable seamless Single Sign-On across Microsoft 365, Teams, Edge, and SaaS applications.
---
When to Use
| Identity State | Target Ownership | Auth Infrastructure | Best Used For |
|---|---|---|---|
| Microsoft Entra Joined | Corporate-owned | 100% Cloud (Entra ID) | New PCs, remote workers, modern cloud-first enterprise strategy. |
| Microsoft Entra Hybrid Joined | Corporate-owned | On-premises AD DS + Entra Connect | Existing enterprise fleets requiring legacy Kerberos/NTLM and on-prem Group Policies (GPO). |
| Microsoft Entra Registered | Personal / BYOD | User Account Binding | Employee personal laptops, mobile phones accessing corporate email or Teams. |
---
Prerequisites
Hybrid Entra Join Requirements:
- Microsoft Entra Connect Sync (or Cloud Sync) running and synchronizing target computer Organizational Units (OUs).
- Service Connection Point (SCP) configured in Active Directory Forest (
CN=62a0ff2e-7647-40cc-8660-0080da87c424,CN=Device Registration Configuration,CN=Services,CN=Configuration,DC=domain,DC=com). - Line-of-sight to Domain Controllers (port 88 Kerberos, 389 LDAP, 445 SMB).
- Outbound access from devices to:
https://enterpriseregistration.windows.nethttps://login.microsoftonline.comhttps://device.login.microsoftonline.com
---
Portal Path
Microsoft Entra Admin Center (https://entra.microsoft.com)
└── Identity
└── Devices
├── All devices (Inspect Join Type, MDM status, OS)
└── Device settings (Device registration rules, Join limits)---
Step-by-Step Implementation
Step 1: Verify Active Directory Service Connection Point (SCP)
In an elevated PowerShell prompt on a Domain Controller:
# Query existing SCP registered in the Active Directory Configuration partition
Get-ADServiceConnectionPoint -Filter "Name -eq 'DeviceRegistrationConfiguration'" -Properties * |
Select-Object Name, DistinguishedName, KeywordsThe Keywords property must contain:
azureADId:azureADName:
Step 2: Configure Entra Connect Sync for Hybrid Join
- Open Microsoft Entra Connect setup wizard on the sync server.
- Select Configure device options > Click Next.
- Select Configure Hybrid Microsoft Entra join.
- Check Windows 10 or later domain-joined devices.
- Select your Active Directory forest, authentication service, and provide Enterprise Admin credentials to generate/update the SCP.
- Ensure the target Computer Organizational Units (OUs) are selected under sync filtering.
Step 3: Trigger Device Registration on Windows Endpoint
On the domain-joined client machine:
- Open Task Scheduler (
taskschd.msc). - Navigate to
Microsoft>Windows>Workplace Join. - Right-click Automatic-Device-Join task > Click Run.
- Alternatively, open elevated CMD and execute:
dsregcmd /join---
PowerShell Automation
Comprehensive Device Join Diagnostic (dsregcmd /status):
# Run on Windows 10/11 endpoint to inspect identity state
dsregcmd /statusKey Output Verification Parameters:
+----------------------------------------------------------------------+
| Device State |
+----------------------------------------------------------------------+
AzureAdJoined : YES
EnterpriseJoined : NO
DomainJoined : YES
DomainName : CONTOSO
+----------------------------------------------------------------------+
| SSO State |
+----------------------------------------------------------------------+
AzureAdPrt : YES
AzureAdPrtAuthority : https://login.microsoftonline.com/...
+----------------------------------------------------------------------+Unjoin a Corrupted Hybrid / Registered State:
# Elevated command to clear local registration state
dsregcmd /leave
# Clean cached discovery tokens and force re-discovery
dsregcmd /join /debug---
Microsoft Graph Automation
Query Devices and Filter by Join Type (TrustType):
Connect-MgGraph -Scopes "Device.Read.All"
# List all Entra Hybrid Joined devices
Get-MgDevice -Filter "trustType eq 'ServerAd'" -All |
Select-Object displayName, operatingSystem, isCompliant, approximateLastSignInDateTime |
Format-Table -AutoSize
# List all Cloud-Native Entra Joined devices
Get-MgDevice -Filter "trustType eq 'AzureAd'" -All |
Select-Object displayName, operatingSystem, isCompliant, approximateLastSignInDateTime---
Verification Checklist
Diagnostic Logs & Channels
| Channel / Tool | Log Location | Purpose |
|---|---|---|
| User Device Registration Event Log | Event Viewer > Applications and Services Logs > Microsoft > Windows > User Device Registration > Admin | The primary diagnostic log for Hybrid Join failures, SCP lookup errors, and discovery timeouts. |
| AAD Token Broker Diagnostic Log | Applications and Services Logs > Microsoft > Windows > AAD > Operational | Records Primary Refresh Token (PRT) acquisition, broker exchange, and Cloud AP errors. |
| Kerberos Cloud Ticket Log | klist (CLI command) | Displays Cloud Kerberos Trust tickets used to access on-prem file shares from Entra joined PCs. |
---
Troubleshooting Matrix
| Error Code / Symptom | Root Cause | Exact Resolution |
|---|---|---|
| Event ID 304: Discovery failed | Endpoint cannot resolve SCP in Active Directory or cannot contact enterpriseregistration.windows.net. | 1. Verify SCP in AD using Get-ADServiceConnectionPoint.2. Test outbound firewall on port 443 to Microsoft endpoints. |
AzureAdPrt : NO | User signed in with cached credentials before device registration finished, or TPM issue. | 1. Lock and unlock workstation with active network connection. 2. Check dsregcmd /status under Diagnostic Data for PRT failure details. |
| Dual Identity in Entra ID | PC was hybrid joined while an existing Entra Registered record existed. | Delete the older Entra Registered record; keep the Hybrid Joined record. |
| Device Pending State in Entra | Device object registered in cloud via task, but on-prem AD computer object has not synced via Entra Connect yet. | Force Entra Connect sync on the server: Start-ADSyncSyncCycle -PolicyType Delta. |
---
Production Best Practices
Cloud Kerberos Trust for Entra Joined PCs:
Entra Joined PCs can access on-premises file servers and printers without Hybrid Join! Deploy Microsoft Entra Kerberos Trust (Windows Server 2016+ KDC) to issue on-prem Kerberos tickets directly from the cloud PRT.
Do Not Hybrid Join VDI Non-Persistent Pools:
Non-persistent virtual desktop infrastructure (Citrix/Horizon/AVD) can cause thousands of orphaned computer objects in Entra ID. Use dedicated Entra Joined or single-session persistent pools instead.
---
MD-102 Exam Notes
High-Frequency Exam Objectives & Traps:
- TrustType Mappings: In Graph/PowerShell,
AzureAd= Entra Joined,ServerAd= Hybrid Entra Joined,Workplace= Entra Registered. - Automatic Join Mechanism: Hybrid Join is triggered by the scheduled task Automatic-Device-Join running under the
SYSTEMcontext. - SCP Location: The Service Connection Point is stored in the Configuration partition of the Active Directory forest.
---