This article describes three ways to locate and verify the Microsoft Entra hybrid joined device state.
Verify Microsoft Entra hybrid join
Prerequisites
Locally on the device
Follow these steps:
Open Windows PowerShell.
Enter
dsregcmd /status
.Verify that both AzureAdJoined and DomainJoined are set to YES.
You can use the DeviceId and compare the status on the service using either the Microsoft Entra admin center or PowerShell.
For downlevel devices, see the article Troubleshooting Microsoft Entra hybrid joined down-level devices
Using the Microsoft Entra admin center
Follow these steps:
Sign in to the Microsoft Entra admin center as at least a Cloud Device Administrator.
Browse to Identity > Devices > All devices.
If the Registered column says Pending, then Microsoft Entra hybrid join hasn't completed. In federated environments, this state happens only if it failed to register and Microsoft Entra Connect is configured to sync the devices. Wait for Microsoft Entra Connect to complete a sync cycle.
If the Registered column contains a date/time, then Microsoft Entra hybrid join has completed.
Using PowerShell
Verify the device registration state in your Azure tenant by using Get-MgDevice. This cmdlet is in the Microsoft Graph PowerShell SDK.
When you use the Get-MgDevice cmdlet to check the service details:
- An object with the device ID that matches the ID on the Windows client must exist.
- The value for DeviceTrustType is Domain Joined. This setting is equivalent to the Microsoft Entra hybrid joined state on the Devices page in the Microsoft Entra admin center.
- For devices that are used in Conditional Access, the value for Enabled is True and DeviceTrustLevel is Managed.
Open Windows PowerShell as an administrator.
Enter Connect-MgGraph to connect to your Azure tenant.
Count all Microsoft Entra hybrid joined devices (excluding Pending state)
(Get-MgDevice -All | where {($_.TrustType -eq 'ServerAd') -and ($_.ProfileType -eq 'RegisteredDevice')}).count
Count all Microsoft Entra hybrid joined devices with Pending state
(Get-MgDevice -All | where {($_.TrustType -eq 'ServerAd') -and ($_.ProfileType -ne 'RegisteredDevice')}).count
List all Microsoft Entra hybrid joined devices
Get-MgDevice -All | where {($_.TrustType -eq 'ServerAd') -and ($_.ProfileType -eq 'RegisteredDevice')}
List all Microsoft Entra hybrid joined devices with Pending state
Get-MgDevice -All | where {($_.TrustType -eq 'ServerAd') -and ($_.ProfileType -ne 'RegisteredDevice')}
List details of a single device:
- Enter the following command. Obtain the device ID locally on the device.
$Device = Get-MgDevice -DeviceId <ObjectId>
- Verify that
AccountEnabled
is set toTrue
.
$Device.AccountEnabled