Error Details
| Fact | Value | Source | Note |
|---|
| Exact error string | The allowed Intune device count has been exceeded for this user. | DeviceSetup.log | -> |
| Affected OS build range | Windows 11 23H2 | Autopilot enrollment logs | -> |
| Registry key or OMA-URI involved | Not applicable - error is service-based. | Microsoft documentation | -> |
| Relevant service/endpoint URL | https://portal.azure.com/#blade/Microsoft_AAD_IAM/UserManagementMenuBlade/memberdetailstree/User/ | Azure portal | -> |
| Log line signature | [Error] 0x801c03ed: The allowed Intune device count has been exceeded for this user. | DeviceSetup.log | -> |
Log Files to Check
C:\Windows\Panther\DeviceSetup.logC:\Windows\System32\winevt\Logs\SetupAct.xml
What This Error Actually Means
The error code
0x801c03ed indicates that during Windows Autopilot enrollment, the Intune service has detected that the user attempting to enroll the device has exceeded their allowed number of enrolled devices. This error is raised by the Microsoft Entra (formerly Azure Active Directory) Identity Protection service when it encounters a situation where the device count for a specific user exceeds the configured limit in Intune. The error string explicitly states: "The allowed Intune device count has been exceeded for this user."
This issue is not related to hardware compatibility, driver issues, or local system configurations but rather to tenant-wide policies enforced by Microsoft Entra and Intune. It reflects a service-based limitation that must be addressed through the Azure portal or Intune admin center.
Affected Versions and Scope
This error affects devices running **Windows 11 23H2** attempting Autopilot enrollment. The issue is specific to tenants where an Intune device enrollment policy has been configured with a maximum allowed number of devices per user. Tenants without such policies or those using older versions of Windows Autopilot are not affected.
The scope of the error is limited to scenarios where:
- A user attempts to enroll a new device while already at their maximum allowed device count.
- The Intune tenant has enforced a strict device limit policy, which may be configured per user or globally across the tenant.
Where To Look First: Logs and Event IDs
To diagnose this issue, examine the following log files:
1.
C:\Windows\Panther\DeviceSetup.log
2.
C:\Windows\System32\winevt\Logs\SetupAct.xml
Search for the exact log line:
[Error] 0x801c03ed: The allowed Intune device count has been exceeded for this user.
Additionally, review Event IDs in the Windows event logs:
-
Event ID 1003: Autopilot enrollment failure.
-
Event ID 2004: Device enrollment status update.
Use the following PowerShell cmdlet to extract relevant events:
Get-WinEvent -LogName "Microsoft-Windows-DeviceManagement-Enterprise-Diagnostics-Provider/Admin" -MaxEvents 50 | Where-Object { $_.Id -eq 1003 -or $_.Id -eq 2004 }
Root Causes
The error can result from one or more of the following scenarios:
1. User Has Reached Maximum Allowed Devices
The user attempting enrollment has already reached their device limit as defined in Intune. This is the most common cause and occurs when a tenant enforces a strict per-user device count policy.
2. Misconfigured Device Enrollment Policy
The Intune device enrollment policy may have been configured incorrectly, such as setting an excessively low maximum device count or applying it to the wrong user group.
3. Orphaned Devices Not Cleaned Up
Devices that were previously enrolled but are no longer in use (orphaned devices) may still be counted against the user's quota, preventing new enrollments.
Fix Procedure
Follow these steps to resolve the issue:
- Verify Current Device Count for User:
Use the Azure portal to check how many devices are currently enrolled under the affected user:
Be cautious when removing devices, as this action may affect existing users.
Navigate to: Azure Active Directory > Enterprise Applications > Microsoft Intune and review device counts per user.
- Adjust Device Enrollment Policy:
Modify the Intune device enrollment policy to increase the allowed number of devices or remove the limit entirely if appropriate. Use the following cmdlet to retrieve current policies:
Get-MgDeviceManagementManagedDevice -Filter "deviceEnrollmentType eq 'windowsAutoEnrollment'"
- Clean Up Orphaned Devices:
Remove devices that are no longer in use but still count against the user's quota. Use this PowerShell cmdlet to identify and remove orphaned devices:
Get-AutopilotDevice | Where-Object serialNumber -eq $serial | Remove-AutopilotDevice
- Force Re-enrollment:
If the issue persists, force a re-enrollment of the device using:
dsregcmd /status
Follow up with:
dsregcmd /join
- Update Device Enrollment Status:
Verify that all changes have been applied by checking the enrollment status in Intune. Use this cmdlet to confirm successful enrollment:
Get-MgDeviceManagementManagedDevice -Filter "deviceEnrollmentType eq 'windowsAutoEnrollment'"
Error Code Variants
| Error Code | Description |
| 0x801c03ed | Allowed Intune device count exceeded for this user. |
| 0x801c03ee | Device enrollment failed due to invalid credentials. |
| 0x801c03ef | Enrollment failed due to missing device identity certificate. |
Verification
After implementing the fix, verify success by:
- Checking
C:\Windows\Panther\DeviceSetup.log for a log line indicating successful enrollment.
- Reviewing the Azure portal to ensure the user's device count is within limits.
- Using this PowerShell cmdlet to confirm the device has been successfully enrolled:
Get-MgDeviceManagementManagedDevice -Filter "deviceEnrollmentType eq 'windowsAutoEnrollment'"
Prevention
To prevent recurrence, implement the following measures:
1. Regularly audit Intune device enrollment policies to ensure they align with tenant needs.
2. Set appropriate maximum device counts based on organizational requirements.
3. Use this OMA-URI string for advanced policy management:
.Device/Vendor/MSFT/Enrollment/MaxDevicesPerUser
4. Monitor for orphaned devices and clean them up periodically using:
Get-AutopilotDevice | Where-Object enrolled -eq $false | Remove-AutopilotDevice
A quick diagnostic shortcut is to use the following cmdlet to check a user's device count directly from PowerShell:
Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/deviceManagement/managedDevices"