Why use this template?
Use this PowerShell template when you need to find managed devices without an Entra device ID association. It is generated locally and can be reviewed before you run it yourself in your own PowerShell session.
The template uses Microsoft.Graph.DeviceManagement and requires DeviceManagementManagedDevices.Read.All. Output: CSV report. Level: Intermediate. Action: Read-only. Risk: Low.
Review before running
The script is generated in your browser. Read it before you run it, and test it outside production first. “Read-only” describes the script itself; anything you add around it can still change data.
Generate the script
- Open the template in the PowerShell Builder.
- Enter the requested values and review the module, permissions, output and risk.
- Generate the script, read it carefully, and test it outside production before use.
The script is generated locally in your browser. Nothing needs to be uploaded to Opselith.
Generate Find Intune devices missing an Entra device ID →How to use this result
Use this report to identify Intune managed-device records whose AzureADDeviceId value is empty.
When this helps
- Investigate managed-device records that cannot be directly correlated to an Entra device ID from this property.
- Review migration, enrollment or lifecycle exceptions where an expected Entra association is missing.
How to read the result
- A returned row means AzureADDeviceId is blank in the Intune managed-device record at query time.
- A blank association does not by itself identify the cause or prove that device management is broken.
Things to check
- Enrollment type, platform and device lifecycle can affect whether an Entra device relationship exists or is useful.
- Use Intune enrollment details, Entra device inventory and recent sync data before remediation.
What to do next: Check the enrollment scenario and search Entra by other device identifiers before changing or re-enrolling the device.
Related tasks
Official references