IntuneTroubleshooting

Android fully managed and COPE enrollment errors in Intune: tokens, QR codes and sign-in

Fix Android fully managed and corporate-owned work profile enrollments that fail during setup: device and token checks, QR code and afw#setup, Google downloads, Conditional Access and registration.

Fully managed (COBO) and corporate-owned work profile (COPE) devices enroll during Android setup, before anyone can use them. When something breaks, the user sees a generic Android error, a blocked sign-in or a registration screen that never finishes. In this post I'll walk through the enrollment chain (device, token, provisioning method, Google downloads, Microsoft Entra sign-in and registration) and show how to find the broken link and prove the fix.

Errors this guide fixes

  • Couldn't set up your device. For help, contact your IT admin.Android setup screen
  • AADSTS53000 (DeviceNotCompliant)Microsoft Entra sign-in log+1 more guide
  • Something went wrongMicrosoft Intune app (device registration)
How this guide is organised: Symptoms → Why it happens → How to fix it → Verify the fix → Prevent it next timeFlow diagram of the article's sections in reading order: 1. Symptoms. 2. Why it happens. 3. How to fix it (6 steps: Start from a clean, supported device; Check the profile and its token; Use the provisioning method correctly; Give setup a clean network; Unblock the Microsoft Entra sign-in; If registration fails or hangs). 4. Verify the fix. 5. Prevent it next time. Toolbox: AADSTS53000, AADSTS53003, Devices › Enrollment, Health › Service health, afw#setup.1Symptoms2Why it happens3How to fix it4Verify the fix5Prevent it nexttime1Start from aclean, support…2Check theprofile and its…3Use theprovisioning…4Give setup aclean network5Unblock theMicrosoft Ent…6If registrationfails or hangsTOOLBOXAADSTS53000AADSTS53003Devices › EnrollmentHealth › Service healthafw#setupHow this guide is organised: Symptoms → Why it happens → How to fix it → Verify the fix → Prevent it next timeFlow diagram of the article's sections in reading order: 1. Symptoms. 2. Why it happens. 3. How to fix it (6 steps: Start from a clean, supported device; Check the profile and its token; Use the provisioning method correctly; Give setup a clean network; Unblock the Microsoft Entra sign-in; If registration fails or hangs). 4. Verify the fix. 5. Prevent it next time. Toolbox: AADSTS53000, AADSTS53003, Devices › Enrollment, Health › Service health, afw#setup.1Symptoms2Why it happens3How to fix it1Start from a clean, supported device2Check the profile and its token3Use the provisioning method correctly4Give setup a clean network5Unblock the Microsoft Entra sign-in6If registration fails or hangs4Verify the fix5Prevent it next timeTOOLBOXAADSTS53000AADSTS53003Devices › EnrollmentHealth › Service healthafw#setup
At a glance: how this guide is organised · 6 fix steps · 5 key tools

Symptoms#

  • Straight after scanning the QR code, typing the token or the NFC bump, Android stops and offers to reset the device with a generic provisioning error such as:
Text
Couldn't set up your device. For help, contact your IT admin.
  • Setup sits on download or update screens for a long time, then fails.
  • The Microsoft sign-in page opens in a Chrome tab but access is blocked, and the Microsoft Entra sign-in log shows AADSTS53000 (DeviceNotCompliant).
  • Registration in the Microsoft Intune app ends with Something went wrong or never completes (reported by admins).
  • The device enrolls, but in the wrong mode (fully managed instead of COPE) or outside the expected group.

Android's error wording varies by version and manufacturer, so match on where in setup the failure happens, not only on the text.

Why it happens#

Corporate enrollment is a chain, and each link has its own failure pattern:

LinkWhat must be trueTypical break
DeviceNew or factory reset; for fully managed, Android 10 or later with Google Mobile Services availableUsed device not reset, hardware without Google Mobile Services, old OS
TokenA valid token from the right enrollment profileToken revoked or replaced, profile deleted, staging token expired, old printed QR codes
Provisioning methodQR code, token entry, NFC, zero-touch or Knox Mobile Enrollment delivering that tokenQR code from another profile type, zero-touch or Knox configuration still holding an old token, afw#setup or NFC used for COPE on Android 11 or later
DownloadsAndroid Device Policy and the Microsoft apps install from Google PlayCaptive portal, authenticated proxy, TLS inspection, blocked Google endpoints
Sign-inThe user signs in to Microsoft Entra ID in a Chrome tabConditional Access requires a compliant device before the device can be compliant
RegistrationMicrosoft Authenticator (installed automatically, required) and the Microsoft Intune app finish registrationApp downloads failing, temporary service problems

How to fix it#

1. Start from a clean, supported device#

Corporate modes can only be set up from the first setup screen, so factory reset any device that has been used. For fully managed enrollment, Microsoft requires Android 10 or later and a build with Google Mobile Services connectivity. Check that the device is Play Protect certified; Google documents how to check this in the Play Store settings. Devices without Google Mobile Services belong in AOSP enrollment, not here.

2. Check the profile and its token#

In the Intune admin center go to Devices › Enrollment, select the Android tab and, under Android Enterprise › Enrollment Profiles, open Corporate-owned, fully managed user devices or Corporate-owned devices with work profile. Then:

  • Open the profile and select Token to view, replace, revoke or export it. A revoked token stops working immediately; after replacing one, use the new QR code everywhere. None of these actions affects devices that are already enrolled. In the COPE list, a profile whose token was revoked only shows when you filter for Inactive as well as Active.
  • Check the token type. Fully managed profiles use Corporate-owned, fully managed (default) or Corporate-owned, fully managed, via staging, and COPE profiles the matching Corporate-owned with work profile pair. In both, only the staging token has an expiration date (up to 65 years ahead), and enrollment time grouping doesn't work with it.
  • If zero-touch or Knox Mobile Enrollment uses the profile, export the token JSON again after any replacement and update those configurations.
  • Avoid renaming a profile that's in use: dynamic groups built on enrollmentProfileName match on the exact name, and Microsoft notes they can't be used with the default fully managed profile.

3. Use the provisioning method correctly#

  • QR code: on the welcome screen of a reset device, tap the same spot six times, connect to Wi-Fi when prompted and scan the code from the profile's Token page.
  • Token entry: continue setup to the Google account sign-in screen and type afw#setup. Android downloads Android Device Policy, then asks you to scan the QR code or enter the token.
  • COPE on Android 11 and later: Microsoft supports afw#setup and NFC for corporate-owned work profile devices only on Android 8 to 10, so use the QR code, zero-touch or Knox Mobile Enrollment instead.
  • NFC, zero-touch and Knox Mobile Enrollment deliver the same token; see Android zero-touch enrollment with Intune and Knox Mobile Enrollment with Intune.

A device in the wrong mode almost always got a token from the wrong profile; reset it and enroll again.

4. Give setup a clean network#

Before the Microsoft sign-in appears, the device downloads Android Device Policy and other apps from Google Play and may update Google components. Use Wi-Fi without a captive portal, authenticated proxy or TLS inspection, and allow the hosts Google lists for Android Enterprise as well as Microsoft's Intune and Microsoft Entra endpoints. Let setup finish without restarting the device.

5. Unblock the Microsoft Entra sign-in#

Android setup authenticates the user in a Chrome tab. If a Conditional Access policy requires a compliant device and applies to all cloud apps on Android and browsers, exclude the Microsoft Intune cloud app from it, as Microsoft's setup guide instructs; a device can't be compliant before it has enrolled. In the Microsoft Entra sign-in log, filter by the user and look for failures such as AADSTS53000; AADSTS53000 and AADSTS53003 explained shows how to find the policy responsible.

6. If registration fails or hangs#

  • Microsoft Authenticator installs automatically on fully managed and COPE devices (COPE also gets the Microsoft Intune app) and can't be removed; if Google Play can't deliver it, registration can't complete.
  • Confirm the user has an Intune licence and can sign in normally on another device.
  • Check Health › Service health in the Microsoft 365 admin center for Intune advisories. Admins have reported registration failures that cleared once a service issue was resolved, so retry before resetting again.

Verify the fix#

  • The device appears in the Intune device list with corporate ownership and the enrollment type you intended (fully managed or corporate-owned work profile), named by the profile's naming template if you set one.
  • If you use a dynamic group on enrollmentProfileName or enrollment time grouping, the device is in the group and policies and apps start to arrive.
  • The user is signed in to the Microsoft Intune app, and the device reports a compliance state rather than staying in "not evaluated".
  • The Microsoft Entra sign-in log shows a successful sign-in for the enrollment.

Prevent it next time#

  • Label printed QR codes with the profile name and token type, and revoke tokens when an enrollment project ends or a code leaks.
  • Keep one test device per model, re-test after Android updates, and plan around Microsoft's minimum versions (Android 10 for fully managed).
  • Document the Microsoft Intune exclusion in your Conditional Access policies so it isn't removed during a clean-up.
  • When a vendor prepares devices, use the staging token so users only sign in to the Microsoft Intune app.

Related guides: personally owned work profile enrollment failures, dedicated devices with Managed Home Screen and the Android enrollment errors quick reference.

References#

Revision history: Oct 2026 — re-checked against Microsoft Learn: 1 correction; 3 details reworded or labelled as reported by admins.

Written and checked against current Microsoft Learn documentation. Test changes with a pilot group before rolling them out to everyone, and if an admin center path has moved since, search for the setting name instead.

Spotted a mistake, or did this fix work differently for you? Email me or message me on LinkedIn — corrections are credited in the article.

Written by

Omer Eltayeb

Intune Subject Matter Expert in Cairo, Egypt, former Microsoft Cloud Solutions Architect, Microsoft Certified Trainer and Microsoft Innovative Educator Expert (2024–26) and Microsoft Elevate Educator Expert (2026–27). I share practical, step-by-step guides, study plans, scripts and toolkits for Microsoft Intune, Configuration Manager, Microsoft Entra ID, Microsoft Defender, Exchange and Microsoft 365 with the community.

Microsoft Certified Trainer (MCT) 2026Microsoft Innovative Educator Expert 2025–2026Microsoft Elevate Educator Expert 2026–2027ISC2 Certified Information Systems Security Professional (CISSP)Microsoft 365 Certified: Enterprise Administrator Expert (MS-102)