Error Details
| Fact | Value | Source | Note |
|---|
| Exact error string | error 30015-4 | C:\Windows\Temp\OfficeC2RClient.log | -> CloakingError |
| Affected build range | Windows 11 23H2 | | |
| Registry key involved | HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration | | -> CDNBaseUrl |
| Relevant service/endpoint URL | *.officecdn.microsoft.com | | -> TCP 443/80 |
| Log line signature | DownloadFailed|hr=0x80070003 | %TEMP%\OfficeMSIInstall.log | |
Log Files to Check
C:\Windows\Temp\OfficeC2RClient.log%TEMP%\OfficeMSIInstall.log
What This Error Actually Means
Error code 30015-4 is a specific issue encountered during the installation of Microsoft 365 Apps for Enterprise via Click-to-Run (C2R) on Windows 11 23H2. The error signifies that there was an unexpected failure in downloading or streaming Office files from the CDN endpoints, which are critical to the C2R installation process. This error is raised by the mso.dll and C2RUI.exe components of Microsoft 365 Apps when they encounter a problem accessing necessary resources online.
The exact string "error 30015-4" appears in the OfficeC2RClient.log file located at
C:\Windows\Temp, indicating that the installation process was unable to proceed due to issues with downloading files from the CDN. This error is closely related to connectivity problems, insufficient disk space, or incorrect configuration of the Click-to-Run service.
Affected Versions and Scope
This specific error code affects Windows 11 builds starting from version 23H2 and onwards for Microsoft 365 Apps installations. It impacts both direct user installations as well as managed deployments through Intune or other MDM solutions where the C2R installation method is employed.
The error does not affect older versions of Office installed via MSI packages, nor does it impact installations on Windows 10 or earlier builds of Windows 11 that do not use the Click-to-Run mechanism. However, any attempt to install Microsoft 365 Apps for Enterprise using C2R on affected systems will result in this error if the conditions leading to its occurrence are present.
Where To Look First: Logs and Event IDs
To diagnose and resolve error code 30015-4, sysadmins should first examine two specific log files:
C:\Windows\Temp\OfficeC2RClient.log: This file contains detailed information about the C2R installation process. Search for lines containing "error 30015", "CloakingError", or "DownloadFailed" to pinpoint where the failure occurred.
%TEMP%\OfficeMSIInstall.log: For installations that use an MSI wrapper, this log file will contain additional details about the installation process. Look for lines with "hr=0x80070003" or similar error codes to identify issues related to downloading components.
Additionally, Event Viewer > Application logs should be reviewed for entries from source
OfficeClickToRun. Specifically, look for Event ID 1000 which often includes information about the faulting module and can provide clues about what went wrong during the installation.
Root Causes
The error code 30015-4 can arise from several distinct causes:
Firewall or Proxy Blocking CDN Endpoints
If a firewall or proxy is configured to block traffic on TCP ports 80 and 443 for the domain
*.officecdn.microsoft.com, this will prevent the C2R installer from downloading necessary files, leading to error code 30015-4.
Insufficient Disk Space or Incorrect ACLs in Temp Folder
The installation process requires at least 5 GB of free space in the %TEMP% folder. If there is insufficient disk space available, or if the permissions on this folder are incorrectly set (e.g., due to a misconfigured
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces registry key), the installation will fail.
Malformed Update Channel URL in Configuration Registry Key
The update channel for Microsoft 365 Apps is specified in the registry under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration. If this value is malformed or missing, it can cause error code 30015-4. The UpdateChannel attribute must be set to one of three valid values: Current, MonthlyEnterprise, or SemiAnnual.
Fix Procedure
The following steps outline the process for resolving error code 30015-4:
- Check C2R Log: Use PowerShell to examine the OfficeC2RClient.log file and identify specific issues. Run
Get-Content 'C:\Windows\Temp\OfficeC2RClient.log' -Tail 200 | Select-String 'error|fail|CDN|download|0x8007'.
- Test CDN Connectivity: Verify connectivity to the CDN endpoints using
Test-NetConnection -ComputerName officecdn.microsoft.com -Port 443 and Test-NetConnection -ComputerName officecdnmac.microsoft.com -Port 443. Ensure that both tests return TcpTestSucceeded as True.
- Check Click-to-Run Service: Use PowerShell to check the status of the ClickToRunSvc service. Run
Get-Service -Name ClickToRunSvc,msiserver | Select-Object Name,Status,StartType. If stopped, start it with Start-Service ClickToRunSvc,msiserver.
- Check Update Channel Configuration: Use PowerShell to inspect the registry for the CDNBaseUrl value. Run
Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration' | Select-Object UpdateChannel,CDNBaseUrl,Platform. If malformed or missing, correct it with Set-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration' -Name CDNBaseUrl -Value 'http://officecdn.microsoft.com/pr/492350f6-3a01-4f97-b9c0-c7c6ddf67d60' and restart the ClickToRunSvc service.
- Remove Conflicting MSI Office: Use Microsoft Support and Recovery Assistant (SaRA) or run
OfficeScrubVx.cmd from the Microsoft Download Center to remove conflicting MSI-based installations. After removal, retry the C2R installation.
- Repair Using ODT in Repair Mode: Create a repair.xml file with necessary configuration and use PowerShell to initiate repair mode:
setup.exe /configure repair.xml. Monitor progress via C:\Windows\Temp\OfficeC2RClient.log.
Error Code Variants
| Error Code | Description |
| 30015-4 | Failure in downloading or streaming Office files from CDN endpoints. |
| 30016-5 | Failure due to insufficient disk space in %TEMP% folder. |
| 30017-2 | Malformed URL for update channel or CDN base URL. |
Verification
After applying the fixes, verify that the installation has completed successfully by checking the Intune admin center > Devices >
> Monitor > App install status. The Microsoft 365 Apps should now show as "Installed". Additionally, review the OfficeC2RClient.log file for lines indicating successful completion of the repair process.
Prevention
To prevent recurrence of error code 30015-4, ensure that:
- The firewall and proxy configurations allow traffic to
*.officecdn.microsoft.com.
- Sufficient disk space is available in the %TEMP% folder.
- Registry keys related to Microsoft 365 Apps are correctly configured.
- No conflicting MSI-based Office installations exist on the system.
Implementing these baseline changes will help ensure smooth installation and operation of Microsoft 365 Apps for Enterprise.