Office Patching with SCCM

THUMMALURU RAJESH REDDY 0 Reputation points
2025-09-12T11:29:27.67+00:00

Hi

I am facing issue with office feature Upgrade, there are around 300+devices on which patches not getting installed. i have observed that its happening since two month.

0X87D0024A-The job is already connected

0X8000000E-A method was called at an unexpected time.

I have checked ApiClient.dll is present under path C:\Program Files\Common Files\Microsoft Shared\ClickToRun\ApiClient.dll.

I have copied it manually from one working to non working devices, but that will not helped. COuld you please suggest.
we have downloaded 13 languages , and we have check the updates deployment.log
i can see onlt this error "AllowTemporaryEnterpriseFeatureControl - failed to delete regkey" in updates deployment.log

Could you please suggest.

Regards

Rajesh

Microsoft Security | Intune | Configuration Manager | Updates
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. mert efe kanlikilic 75 Reputation points
    2025-09-19T19:48:11.32+00:00

    The error "AllowTemporaryEnterpriseFeatureControl - failed to delete regkey" suggests a registry permission or access problem. This can happen if the regkey is locked by another process or if the client does not have sufficient permissions. Please try running the script below on the affected clients and then check again to confirm if the issue is resolved.

    # Stop Office  ClicktoRunService 
    
    Stop-Service -Name "ClickToRunSvc" -Force
    
    Stop-Process -Name "OfficeClickToRun" -Force -ErrorAction SilentlyContinue
    
    Stop-Process -Name "OfficeC2RClient" -Force -ErrorAction SilentlyContinue
    
    # Clean Registry
    
    Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Updates" -Name "UpdateDetectionLastRunTime" -ErrorAction SilentlyContinue
    
    Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Updates" -Name "LastScenarioId" -ErrorAction SilentlyContinue
    
    # Restart Service
     Start-Service -Name "ClickToRunSvc"
    
    
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.