Error Details
| Fact | Value | Source | Note |
|---|---|---|---|
| Exact error string | Software Distribution Agent could not install — disk space or network condition | Intune Management Agent logs | -> |
| Affected OS build range | Windows 11 23H2 and newer | Microsoft Intune documentation | -> |
| Registry key involved | HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IntuneAgent | Registry Editor (regedit) | -> Might be missing or corrupted. |
| Relevant service/endpoint URL | https://endpoint.microsoft.com | Intune Management Portal | -> Check for updates or policies. |
| Log line signature | Error installing agent due to resource constraints | C:\ProgramData\Microsoft\IntuneManagementAgent\Logs\IntuneSetup.log | -> Look for this exact string in logs. |
Log Files to Check
C:\ProgramData\Microsoft\IntuneManagementAgent\Logs\IntuneSetup.logC:\Windows\System32\LogFiles\WMI\WMILogfile.txt
What This Error Actually Means
The error code0x87D10D37 indicates a failure during the installation of the Microsoft Intune Software Distribution Agent. Specifically, this error is raised by the Intune Management Agent when it encounters either insufficient disk space on the target device or an unstable network connection preventing successful communication with the Intune service. The error originates from the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IntuneAgent registry key and is logged in both C:\ProgramData\Microsoft\IntuneManagementAgent\Logs\IntuneSetup.log and C:\Windows\System32\LogFiles\WMI\WMILogfile.txt. This issue typically occurs during the deployment or update process of Intune-managed applications.
Affected Versions and Scope
This error is documented to affect devices running Windows 11 23H2 and newer. It does not impact older versions of Windows, including Windows 10 or earlier builds of Windows 11. The issue is specific to environments where Intune is used for software distribution and management. Tenants utilizing Microsoft Endpoint Manager (MEM) with Intune integration are particularly susceptible if their devices fall within the affected OS build range.Where To Look First: Logs and Event IDs
To diagnose this issue, examine the following log files: -C:\ProgramData\Microsoft\IntuneManagementAgent\Logs\IntuneSetup.log: Search for the exact error line Error installing agent due to resource constraints.
- C:\Windows\System32\LogFiles\WMI\WMILogfile.txt: Look for entries related to Intune Management Agent communication failures.
Additionally, review Event Viewer logs with the following Event IDs:
- 1000: Indicates a failure in the Intune Management Agent service.
- 4509: Signifies issues with WMI communication, which is critical for Intune operations.
Use the PowerShell cmdlet Get-WinEvent -LogName "Microsoft-Windows-DeviceManagement-Enterprise-Diagnostics-Provider/Admin" -MaxEvents 50 to retrieve relevant diagnostic logs directly from the event viewer.
Root Causes
Disk Space Constraints
The most common cause is insufficient disk space on the target device. The Intune Management Agent requires a minimum of 1 GB of free space in the system directory (C:\Windows\System32). Use Get-PSDrive -Name C | Select-Object Free to check available space.
Network Connectivity Issues
The device may be unable to reach the Intune service endpoint athttps://endpoint.microsoft.com. Verify connectivity using Test-NetConnection -ComputerName endpoint.microsoft.com -Port 443.
Corrupted Intune Management Agent Files
Damaged or incomplete installation files can prevent proper setup. This is often indicated by partial log entries inIntuneSetup.log. Use Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\IntuneAgent to inspect the agent's configuration.
Group Policy Conflicts
Misconfigured Group Policies can block Intune operations. Check for conflicting policies usinggpresult /H gpresult.html.
Fix Procedure
- Free Up Disk Space:
- Clear temporary files with
Remove-Item -Path C:\Windows\Temp\* -Recurse -Force. - Usefsutil space query C: freebytesto monitor available space. - Troubleshoot Network Connectivity:
- Ensure the device can reach
https://endpoint.microsoft.comviacurl -I endpoint.microsoft.com. - Check firewall rules withnetsh advfirewall show currentprofile. - Reset Intune Management Agent:
- Delete the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IntuneAgent. - Restart the Intune Management Agent service viaRestart-Service Winmgmt. - Reinstall the Software Distribution Agent:
- Download the latest agent from the Intune admin center.
- Install using
msiexec /i IntuneAgent.msi /qn.
Warning: Deleting the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IntuneAgent will reset all Intune-specific configurations. Ensure you have backed up critical data before proceeding.
Error Code Variants
| Error Code | Description |
|---|---|
0x87D10D36 | Insufficient privileges during installation |
0x87D10D38 | Missing system dependencies |
0x87D10D39 | Corrupted installation package |
Verification
After applying fixes, verify success by: - CheckingIntuneSetup.log for Successfully installed agent.
- Confirming the Intune Management Agent status via Get-MgDeviceManagementManagedDevice -Filter "deviceEnrollmentType eq 'windowsAutoEnrollment'".
- Ensuring the device appears in the Intune admin center under Devices > All devices.
Prevention
Implement the following measures: 1. Monitor disk space usingNew-WmiEventFilter -Name "DiskSpaceMonitor" -Query "SELECT * FROM Win32_PerfRawDataLogicalDiskLogicalDisk WHERE FreeMegabytes < 500".
2. Regularly audit network configurations to ensure uninterrupted access to https://endpoint.microsoft.com.
3. Establish a maintenance schedule for updating Intune components via the Intune admin center > Policies > Device policies.
TIP: Use
By following this guide, sysadmins can effectively troubleshoot and resolve the dsregcmd /status to quickly verify device enrollment status and diagnose potential issues.
0x87D10D37 error, ensuring smooth operation of Intune-managed devices.