Intune Company Portal Stuck or Enrollment Not Completing: Practical Diagnosis
Checked against Microsoft Learn on 10 November 2026What changed
Added a one-device home-lab test you can run yourself. Quick answer added 10 November 2026.
- Risk
- Medium
Quick answer
Why is Company Portal enrolment stuck?
Company Portal enrolment can stall because of an incorrect Entra join or registration state, a missing Intune licence, automatic enrolment or MDM user scope configuration, existing management, or a Conditional Access compliance loop. First check the device records in Entra and Intune, the user licence and automatic enrolment scope. Collect the exact error, timestamp, join state and Company Portal/MDM logs before retrying.
Log to open first: Microsoft-Windows-DeviceManagement-Enterprise-Diagnostics-Provider/Admin
Start here: first three checks
- Record the user UPN, device name, timestamp and exact error text before anyone reinstalls Company Portal.
- Check whether the device object already exists in Entra and Intune, and that the user is licensed for Intune.
- Confirm the device is in scope for automatic enrolment if you expect user-driven MDM.
Jump to section19 sections
Failure State
A user opens Company Portal, signs in, and then one of the following happens:
- Company Portal spins forever on setup or “connecting to Microsoft Intune”
- The device appears in Entra ID but not as an Intune-managed device
- Enrollment starts, fails with a generic error, and retry does nothing useful
- Company Portal installs, but apps and policies never arrive
- Autopilot finished, yet the user still cannot enrol a personally staged device
This guide is a practical diagnosis path for Windows devices where Company Portal or MDM enrollment is stuck. It is not a full Autopilot ESP deep-dive — use your Autopilot guides when the failure is only during OOBE provisioning.
Scope
In scope:
- Entra-joined or hybrid-joined Windows 10/11 devices
- Company Portal install and sign-in problems
- MDM enrollment that never reaches managed state
Out of scope:
- Absolute pure Autopilot network failures during ESP only
- Android/iOS enrollment
- Co-management client health for ConfigMgr-only workloads
First 10 Minutes: Do Not Thrash
Before reinstalling Company Portal five times:
- Record the exact user UPN, device name, and timestamp
- Capture the error text or screenshot
- Confirm whether the device object already exists in Entra and Intune
- Confirm the user is licensed for Intune
- Confirm the device is in scope for automatic enrollment if you expect user-driven MDM
Guessing burns the evidence.
Decision Tree
Is the device in Entra ID?
├─ No → fix join/registration first (Entra join / hybrid join)
└─ Yes
├─ Is the user licensed for Intune?
│ ├─ No → assign licence, wait for licence propagation, retry
│ └─ Yes
│ ├─ Is MDM authority / automatic enrollment configured?
│ │ ├─ No → fix enrollment configuration
│ │ └─ Yes
│ │ ├─ Is device already MDM-enrolled to another tenant/management?
│ │ │ ├─ Yes → remove old management carefully
│ │ │ └─ No → collect Company Portal / MDM logs and continue belowStep 1: Portal State Checks
Entra admin centre
- Open the device object
- Note Join type (Entra joined / Hybrid Azure AD joined)
- Note MDM and Registered fields if shown
- Check whether the device is disabled
Intune admin centre
- Search the device by name
- If missing, search by Entra device ID if you have it
- If present, open Device enrollment / hardware / compliance timestamps
- Check Managed by and last check-in
Interpretation:
| Entra | Intune | Likely meaning |
|---|---|---|
| Present | Missing | Join worked, MDM enrollment failed or never started |
| Missing | Missing | Device identity problem first |
| Present | Present, stale | Enrollment once worked; now a sync/agent problem |
| Present | Present, healthy | Company Portal UX issue or app deployment issue, not enrollment |
Step 2: Licence and Enrollment Configuration
Confirm:
- User has an Intune licence (standalone or as part of M365 bundle)
- Automatic enrollment is configured when you expect user-driven MDM for Entra joined devices
- The user is in scope of the automatic enrollment configuration (some tenants scope by group)
- Device limit restrictions have not been hit for the user
- Enrollment restrictions do not block the platform or personally owned devices if that is your scenario
If the user was licensed five minutes ago, wait for token/licence propagation before declaring failure.
Step 3: Local Device Checks
On the Windows device (with user consent and support access):
- Confirm date/time and timezone are correct
- Confirm the device can reach required Microsoft endpoints (proxy/SSL inspection issues are common)
- Confirm the signed-in account is the expected work account
- Check whether another MDM enrollment exists
Useful commands:
# Who am I / join state hints
dsregcmd /status
# Look for AzureAdJoined / DomainJoined / WamDefaultSet sections
# Capture the full output into the ticketIn dsregcmd /status, pay attention to:
AzureAdJoinedDomainJoinedWorkplaceJoined- SSO state / WAM errors
- MDM URL fields when present
If AzureAdJoined : NO and you expected Entra join, stop debugging Company Portal and fix join.
Step 4: Company Portal App Health
Reinstall is not the first step
First determine:
- Is Company Portal from Microsoft Store, Win32, or embedded provisioning?
- Does the app open at all?
- Does sign-in prompt appear?
- Does failure occur after sign-in?
Then:
- Update Company Portal if an update is available
- Clear the app’s local issue only if you understand you may remove cached state
- Reinstall only after collecting logs
Common local blockers
- Broken Microsoft Store connectivity for Store-based installs
- Time drift causing token failures
- TLS inspection breaking auth endpoints
- Conditional Access requiring a compliant device before enrollment can finish (catch-22 designs)
- User signing in with the wrong tenant account
Step 5: Conditional Access Catch-22
A frequent enterprise own-goal:
- CA requires compliant device for all cloud apps
- Device cannot become compliant until Intune enrollment completes
- Enrollment cannot complete because CA blocks the management paths
Mitigations used in mature tenants:
- Exclude Microsoft Intune enrollment / related setup from the strictest device compliance grants carefully
- Use a staged policy set that allows enrollment pathways
- Ensure break-glass and admin scenarios are not the only tested paths
Do not casually exclude all cloud apps from MFA. Fix the enrollment path with the smallest safe exception and document it.
Step 6: Event Logs and MDM Evidence
Collect:
- Applications and Services Logs > Microsoft > Windows > DeviceManagement-Enterprise-Diagnostics-Provider > Admin
- Company Portal logs from the app’s known local log location for your Windows build
dsregcmd /statusoutput- Screenshot of Company Portal error
In the DeviceManagement-Enterprise-Diagnostics-Provider Admin log, look for enrollment error codes around the failure time. Translate the code using Microsoft documentation rather than guessing from memory.
Also check:
Get-WinEvent -LogName 'Microsoft-Windows-DeviceManagement-Enterprise-Diagnostics-Provider/Admin' -MaxEvents 50 |
Select-Object TimeCreated, Id, LevelDisplayName, MessageAdjust log names if your build surfaces the provider differently; the goal is timed MDM errors, not a perfect one-liner.
Two codes are worth looking up before you retry. 0x80180014 means the MDM service refused enrolment, usually because an enrolment restriction blocks Windows (MDM). 0x800705b4 is a timeout. Both have a landing page in the Intune error code lookup with the log to open and the fix order.
Step 7: Safe Retry Sequence
Only after evidence is captured:
- Confirm licence and automatic enrollment scope
- Confirm join state is healthy
- Sign out of Company Portal / Windows work account session if corrupted WAM state is suspected
- Retry enrollment once
- If still failing, reinstall Company Portal once
- If still failing, review CA and network path with security/network owners
- As a last resort for a non-production device, consider removing a broken partial enrollment state using your approved runbook — not random registry deletion on a CFO laptop
Step 8: When the Device Is Half-Enrolled
Symptoms:
- Entra object exists
- Intune object missing or stuck
- Company Portal thinks setup is incomplete
Actions:
- Do not create duplicate device objects by aggressive re-joins without a plan
- Check for stale device records with the same hardware name
- Remove only the failed enrollment artifacts your runbook permits
- Re-enroll once
- Validate apps/policies arrive after managed state is true
If Autopilot devices repeatedly half-enroll, escalate to provisioning profile and ESP diagnostics rather than treating every case as a Company Portal app bug.
When Not To Keep Retrying
Stop the user-facing retry loop when:
- Licence is missing
- Join state is broken
- CA catch-22 is confirmed
- Network path to enrollment endpoints is blocked
- The device is already managed by another tenant
More retries will not create a licence or open a firewall.
Validation After Fix
- Device appears in Intune as managed
- Last check-in is current after a manual sync
- Company Portal shows the device as managed
- At least one required app or policy assignment begins applying
- Compliance evaluation is not permanently “not evaluated” solely due to never checking in
Prevention Checklist
- Document automatic enrollment scope and licence prerequisites for helpdesk
- Test CA policies against enrollment accounts before enforcing compliance-for-all
- Keep a known-good Company Portal deployment method
- Train helpdesk to capture
dsregcmd /statusbefore reinstall loops - Monitor enrollment failure codes weekly during major Windows feature waves
Test it in a home lab (join, enrol, one induced miss)
Use a clean home VM.
- Create a cloud-only lab user with an Intune licence. Do not use a work UPN.
- Configure Windows automatic MDM enrollment for that user, or enrol through Company Portal after Entra join.
- On the VM, record
dsregcmd /statusAzureAdJoined, WorkplaceJoined, and MDMUrl before retrying anything. - Complete enrollment until the device appears in Intune as managed and Last check-in is current.
- Induce one miss: remove the Intune licence, or exclude the user from automatic enrollment, then try Company Portal again. Capture the failure text and the Entra device record (joined, not managed).
- Restore the licence or assignment and enrol once. Stop if you are about to reset the VM to hide a CA catch-22 you have not named.
Primary Sources
Related Reading
- Intune device not syncing
- Intune compliance policy not evaluating
- Entra dynamic group not updating
- Intune topic hub
Correction record
19 September 2026: Added a one-device home-lab test for enrollment success and one induced miss.
Keep going
- Got an error code from this failure? Look it up in the Intune & ConfigMgr error code lookup — the log to open, its folder, and the fix order.
- Error codes from this failure: 0x80180014, 0x80180013, 0x80180026, 0x8018002B — each with its own runbook page.
- Related guide: Intune device not syncing
Jack Hadcroft
LinkedInEndpoint Specialist and author of AdminSignal
Technical claims are reviewed against current Microsoft documentation. Lab or tenant checks are named only when they were done.
Independent publication. About · Editorial policy