Get-EntraDevice excluding Autopilot devices

Michael Fleet 101 Reputation points
2025-04-30T14:36:51.2266667+00:00

I'm following the guidance here to disable and then delete stale Entra devices -

https://free.blessedness.top/en-us/powershell/entra-powershell/manage-stale-devices?view=entra-powershell

How can I exclude all Autopilot device objects in the response (not sure of an appropriate filter attribute other than specifying the EnrollmentProfileName values)?

Microsoft Security | Intune | Reporting
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.