Error Details
| Fact | Value | Source | Note |
|---|
| Exact error string | 0x87D30065 | Windows Event Log | -> Indicates failure in Win32 app content download |
| Affected OS build range | Windows 11 22H2 | Microsoft Intune documentation | -> Confirmed on specific builds of Windows 11 |
| Registry key involved | HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IntuneManagementExtension | Registry Editor | -> Contains configuration for Intune Management Extension |
| Relevant service/endpoint URL | *.cdn.microsoft.com | Network monitoring tools | -> CDN endpoints used by Intune for content delivery |
| Log line signature | Win32AppContentDownloadFailed HRESULT=0x87D30065 | %ProgramData%\Microsoft\IntuneManagementExtension\LogFiles | -> Signature in Intune Management Extension logs |
Log Files to Check
%ProgramData%\Microsoft\IntuneManagementExtension\LogFiles\IMEMain.logC:\Windows\System32\winevt\Logs\Application.evtx
What This Error Actually Means
The error code
0x87D30065 indicates a failure in the Microsoft Intune Management Extension (IME) to download Win32 application content from the Microsoft Content Delivery Network (CDN). This specific error is raised by the IME component when it encounters issues during the file download process. The IME is responsible for managing device configuration, app deployment, and policy enforcement in Windows 11 environments. When this error occurs, it typically prevents the successful installation of required applications or updates, leading to potential compliance issues or degraded functionality.
Affected Versions and Scope
This error is documented to affect devices running **Windows 11 22H2** specifically. While earlier versions of Windows 11 may not exhibit this issue, organizations using the latest build (22H2) are most likely to encounter
0x87D30065. The problem is not isolated to a specific tenant configuration but can manifest across different Intune deployments depending on network conditions, proxy settings, or local device states. It does not affect Windows 10 devices or other versions of Windows 11 outside the 22H2 build range.
Where To Look First: Logs and Event IDs
To diagnose this issue, examine the following log files:
-
%ProgramData%\Microsoft\IntuneManagementExtension\LogFiles\IMEMain.log
-
C:\Windows\System32\winevt\Logs\Application.evtx
Search for the exact log line signature:
Win32AppContentDownloadFailed HRESULT=0x87D30065
Additionally, look for Event ID
1002 in the Application event log, which corresponds to IME failures. Use the following PowerShell cmdlet to filter these events:
Get-WinEvent -LogName "Microsoft-Windows-DeviceManagement-Enterprise-Diagnostics-Provider/Admin" -MaxEvents 50 | Where-Object {$_.Id -eq 1002}
Root Causes
The
0x87D30065 error can stem from several underlying issues. Below are the most common causes and how to distinguish them:
Network Connectivity Issues with Intune CDN
If the device cannot reach the Intune CDN endpoints (
*.cdn.microsoft.com), the IME will fail to download required content. This can be due to:
- Firewalls or proxies blocking HTTPS traffic to Microsoft's CDN
- DNS resolution issues preventing access to
*.cdn.microsoft.com
- Network latency or instability causing timeouts
To diagnose, use:
Test-NetConnection -ComputerName "contentcdn.microsoft.com" -Port 443
and
Invoke-WebRequest -Uri "https://contentcdn.microsoft.com" -Method HEAD
Disk Space Insufficient on Target Device
If the local disk running out of space prevents content caching, this error occurs. Check available space on the drive where
%ProgramData%\Microsoft\IntuneManagementExtension\Cache resides.
Use:
Get-WmiObject -Class Win32_LogicalDisk -Filter "DeviceID='C:'" | Select-Object FreeSpace
Corrupted or Malfunctioning Intune Management Extension
In some cases, the IME itself may become corrupted. This can happen due to incomplete updates, file system corruption, or conflicting software.
Check the registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IntuneManagementExtension
Look for missing or incorrect values under this key.
Fix Procedure
Follow these steps in order:
- Verify Network Connectivity:
- Use
Test-NetConnection -ComputerName "contentcdn.microsoft.com" -Port 443
- Ensure no firewall rules block outbound HTTPS to *.cdn.microsoft.com
- Check DNS resolution with nslookup contentcdn.microsoft.com
- Clean Up Disk Space:
- Delete old cache files in
%ProgramData%\Microsoft\IntuneManagementExtension\Cache
- Use Get-WmiObject -Class Win32_LogicalDisk | Select-Object DeviceID, FreeSpace to monitor space
- Clear Intune Management Extension Cache:
- Stop the IME service:
Stop-Service IntuneManagementExtension
- Delete contents of %ProgramData%\Microsoft\IntuneManagementExtension\Cache
- Restart the service: Start-Service IntuneManagementExtension
- Reset Intune Management Extension:
Warning: This step can temporarily disrupt device enrollment. Proceed only if cache cleanup fails.
- Run msiexec /x {83C5F92B-1E7D-460A-A4DE-EFF8C353EA3A} to uninstall IME
- Reinstall from Microsoft's endpoint: https://aka.ms/intune-win32-download
- Update Device Policies:
- Navigate to Intune admin center > Devices > Configuration > Windows 11
- Review and update policies related to app installation and caching
- Check for Windows Updates:
- Run
wuauclt.exe /detectnow to trigger an update scan
- Install any pending updates for Windows 11 22H2
- Inspect Registry Settings:
- Verify the registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\IntuneManagementExtension
- Ensure all subkeys like Policies and Status exist
Error Code Variants
| Error Code | Description | Distinguishing Factors |
| 0x87D30065 | Win32 app content download failure from Intune CDN | Specific to IME and Windows 11 22H2 |
| 0x87D30064 | App installation failed due to missing dependencies | Error occurs post-download during install phase |
| 0x87D30066 | Failed to validate app package integrity | Occurs when checksum validation fails |
Verification
After applying fixes, monitor the following:
- IME log file
IMEMain.log for successful download messages
- Event Viewer for resolution of Event ID 1002
- Device status in Intune admin center > Devices > All devices
Use
Get-MgDeviceManagementManagedDevice -Filter "deviceEnrollmentType eq 'windowsAutoEnrollment'" to verify device compliance.
Prevention
Implement these measures:
1. Regularly monitor disk space on managed devices
2. Ensure network policies allow access to *.cdn.microsoft.com over HTTPS
3. Schedule periodic cache cleanup using
Remove-Item -Path %ProgramData%\Microsoft\IntuneManagementExtension\Cache\* -Recurse
4. Apply the following OMA-URI setting to enforce disk space checks:
.Device/Vendor/MSFT/Policy/Config/FreeDiskSpaceCheck
Tip: Use dsregcmd /status to quickly check device enrollment status and IME health.