Adding Existing Entra devices to Intune

Posted by TheKingOfSpite@reddit | sysadmin | View on Reddit | 3 comments

Right I have been struggling with this, I know there's documentation out there, and I've read most of it, but clearly I'm messing this up somewhere. We have around 200 users that we've given Business Premium licenses to. These machines are all Workplace joined, and and they use a hybrid environment with Entra connect. I have tried using the script from here (https://call4cloud.nl/2020/05/enroll-existing-entra-azure-intune/) to enrol these devices to Intune, but it will only work on users that are admins and obviously we don't want that Have tried running in elevated context through RMM but it still gives the following errors Auto MDM Enroll: Device Credential (0x0), Failed (The system tried to delete the JOIN of a drive that is not joined.) CanEnroll Error: MDM enrollment is not allowed due to failed access check(administrator or allowed user, capability check) with HRESULT: (Access is denied.).