Windows 10: Why does Dism.exe /online /Cleanup-Image /StartComponentCleanup result in Error 5 Access denied

Discus and support Why does Dism.exe /online /Cleanup-Image /StartComponentCleanup result in Error 5 Access denied in Windows 10 Network and Sharing to solve the problem; Can someone tell me why, when running Running Administrator Command Prompt, I getError: 5Access is denied at the end :Microsoft Windows [Version... Discussion in 'Windows 10 Network and Sharing' started by mikethetaxi, Jan 15, 2025 at 9:57 AM.

  1. Why does Dism.exe /online /Cleanup-Image /StartComponentCleanup result in Error 5 Access denied


    Can someone tell me why, when running Running Administrator Command Prompt, I getError: 5Access is denied at the end :Microsoft Windows [Version 10.0.19045.5371]c Microsoft Corporation. All rights reserved.C:\WINDOWS\system32>sfc /scannowBeginning system scan. This process will take some time.Beginning verification phase of system scan.Verification 100% complete.Windows Resource Protection did not find any integrity violations.C:\WINDOWS\system32>DISM /Online /Cleanup-Image /RestoreHealthDeployment Image Servicing and Management toolVersion: 10.0.19041.3636Image Version: 10.0.1

    :)
     

  2. dism /online /Cleanup-Image /StartComponentCleanup Error: 5

    Hi .

    Im running Windows 10 Pro x64 (1909 ) buid 10.0.18363.628

    When I run the command :

    dism /online /Cleanup-Image /StartComponentCleanup

    It stuck at 20%

    and I get Error: 5

    Access is denied.

    In the dism.log I see this lines ...

    2020-02-08 21:34:04, Info DISM DISM Package Manager: PID=3744 TID=6800 Processing the top level command token(cleanup-image). - CPackageManagerCLIHandler:Why does Dism.exe /online /Cleanup-Image /StartComponentCleanup result in Error 5 Access denied :private_ValidateCmdLine

    2020-02-08 21:34:04, Info DISM DISM Package Manager: PID=3744 TID=6800 Attempting to route to appropriate command handler. - CPackageManagerCLIHandler::ExecuteCmdLine

    2020-02-08 21:34:04, Info DISM DISM Package Manager: PID=3744 TID=6800 Routing the command... - CPackageManagerCLIHandler::ExecuteCmdLine

    2020-02-08 21:34:04, Info DISM DISM Package Manager: PID=3744 TID=6800 CBS session options=0x400100! - CDISMPackageManager::Internal_Finalize

    2020-02-08 21:34:11, Info DISM DISM Package Manager: PID=3744 TID=1600 Error in operation: (null) (CBS HRESULT=0x80070005) - CCbsConUIHandler::Error

    2020-02-08 21:34:11, Error DISM DISM Package Manager: PID=3744 TID=6800 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x80070005)

    2020-02-08 21:34:11, Error DISM DISM Package Manager: PID=3744 TID=6800 Failed processing package changes - CDISMPackageManager::StartComponentCleanupEx(hr:0x80070005)

    2020-02-08 21:34:11, Error DISM DISM Package Manager: PID=3744 TID=6800 Failed to start component cleanup. - CPackageManagerCLIHandler:Why does Dism.exe /online /Cleanup-Image /StartComponentCleanup result in Error 5 Access denied :processCmdLine_CleanupImage(hr:0x80070005)

    2020-02-08 21:34:11, Error DISM DISM Package Manager: PID=3744 TID=6800 Failed while processing command cleanup-image. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x80070005)

    2020-02-08 21:34:11, Info DISM DISM Package Manager: PID=3744 TID=6800 Further logs for online package and feature related operations can be found at %WINDIR%\logs\CBS\cbs.log - CPackageManagerCLIHandler::ExecuteCmdLine

    2020-02-08 21:34:11, Error DISM DISM.EXE: DISM Package Manager processed the command line but failed. HRESULT=80070005

    --------------------------------------------------------------------------------------

    I want to say the when I use the commands

    dism /online /cleanup-image /checkhealth

    dism /online /cleanup-image /scanhealth

    dism /online /cleanup-image /restorehealth

    this comands works successfully , but when I try dism /online /Cleanup-Image /StartComponentCleanup

    then error: 5 Access denied

    I would like know what cause this issue . and fix it

    Please help Why does Dism.exe /online /Cleanup-Image /StartComponentCleanup result in Error 5 Access denied :(
     
  3. dism /online /Cleanup-Image /StartComponentCleanup Error: 5

    Hi Sumit

    thanks you very much for your answer.

    Do you think that , if it is a permissions problem, is there any possibility that it could be fixed with that command with a Windows image as a source ? I was hoping that would have another way to fix it or find out what causes that error 5 . StartComponentCleanupEx(hr:0x80070005)

    on other hand ,could I execute the command " RestoreHealth " with a Windows 10 DVD (1909) as a source (in a DVD drive) instead of mounting an iso?

    I don't know what could have happened , that cause the command /StartComponentCleanup throw error: 5. Access denied . just a month ago I installed Windows 10 (1909) ( clean installation).

    All other commands, including the sfc command, are executed succesfully and the output as I do not have corrupt files.

    When I finish, the command you recommend, I will let you know the results.

    Right now and because of an error like this, I do not want to reinstall Windows again, only one month later


    Why does Dism.exe /online /Cleanup-Image /StartComponentCleanup result in Error 5 Access denied a5a83d8c-1778-4cf9-8025-2b4752d1a838?upload=true.jpg
     
  4. Why does Dism.exe /online /Cleanup-Image /StartComponentCleanup result in Error 5 Access denied

    dism /online /Cleanup-Image /StartComponentCleanup Error: 5

    Hi Sumit .

    not really. although I would like to know why that command is not executed correctly.

    Discover the cause that causes of error: 5 access denied and the error code HRESULT = 80070005 and be able to solve it .

    That's why I would appreciate help and information that can cause this error
     
Thema:

Why does Dism.exe /online /Cleanup-Image /StartComponentCleanup result in Error 5 Access denied

Loading...
  1. Why does Dism.exe /online /Cleanup-Image /StartComponentCleanup result in Error 5 Access denied - Similar Threads - Why does Dism

  2. Why does Dism.exe /online /Cleanup-Image /StartComponentCleanup result in Error 5 Access denied

    in Windows 10 Gaming
    Why does Dism.exe /online /Cleanup-Image /StartComponentCleanup result in Error 5 Access denied: Can someone tell me why, when running Running Administrator Command Prompt, I getError: 5Access is denied at the end :Microsoft Windows [Version 10.0.19045.5371]c Microsoft Corporation. All rights reserved.C:\WINDOWS\system32>sfc /scannowBeginning system scan. This process...
  3. Why does Dism.exe /online /Cleanup-Image /StartComponentCleanup result in Error 5 Access denied

    in Windows 10 Software and Apps
    Why does Dism.exe /online /Cleanup-Image /StartComponentCleanup result in Error 5 Access denied: Can someone tell me why, when running Running Administrator Command Prompt, I getError: 5Access is denied at the end :Microsoft Windows [Version 10.0.19045.5371]c Microsoft Corporation. All rights reserved.C:\WINDOWS\system32>sfc /scannowBeginning system scan. This process...
  4. DISM /Online /Cleanup-Image /CheckHealth

    in Windows 10 Gaming
    DISM /Online /Cleanup-Image /CheckHealth: Windows 11 22H2 22621.2134 Public Versionis the Check Health option still working properly?As of late as soon as you hit enter Check Health comes back with an immediate response nothing found. However when you do Scan Health problems are found.Has anyone else seen this?...
  5. DISM /Online /Cleanup-Image /CheckHealth

    in Windows 10 Software and Apps
    DISM /Online /Cleanup-Image /CheckHealth: Windows 11 22H2 22621.2134 Public Versionis the Check Health option still working properly?As of late as soon as you hit enter Check Health comes back with an immediate response nothing found. However when you do Scan Health problems are found.Has anyone else seen this?...
  6. Error 0x80029c4a at DISM /Online /Cleanup-Image /RestoreHealth

    in Windows 10 BSOD Crashes and Debugging
    Error 0x80029c4a at DISM /Online /Cleanup-Image /RestoreHealth: Every time I try to use DISM /Online /Cleanup-Image /RestoreHealth I get Error 0x80029c4a.I dont know how to fix this.Help https://answers.microsoft.com/en-us/windows/forum/all/error-0x80029c4a-at-dism-online-cleanup-image/8d8f32db-fc1e-4cab-b53b-25bdbdb401ec
  7. DISM Access Denied Error 5

    in Windows 10 BSOD Crashes and Debugging
    DISM Access Denied Error 5: Hello,While attempting to use DISM, we continued to get an access denied error. When tracking down the directory we found it in windows/CSC. We were unable to access this directory even after increasing the permissions for an admin account along with the built in...
  8. I cannot run Dism /Online /Cleanup-Image /StartComponentCleanup error code 87

    in Windows 10 BSOD Crashes and Debugging
    I cannot run Dism /Online /Cleanup-Image /StartComponentCleanup error code 87: Hi, I was running Dism /Online /Cleanup-Image /StartComponentCleanup to debug one of Windows' many problems when I ran into another error: Error 87. Upon careful inspection of the DISM log file, I found that the log file said that error code 0x80070057 had occurred. What's...
  9. DISM /Online /Cleanup-Image /RestoreHealth

    in Windows 10 BSOD Crashes and Debugging
    DISM /Online /Cleanup-Image /RestoreHealth: When I run this command its always stuck in 43-44 % its said access denied error 5 https://answers.microsoft.com/en-us/windows/forum/all/dism-online-cleanup-image-restorehealth/cd798b7b-e035-4d1b-9f9d-3b00a17fd9ca
  10. dism /online /Cleanup-Image /StartComponentCleanup Error: 5

    in Windows 10 BSOD Crashes and Debugging
    dism /online /Cleanup-Image /StartComponentCleanup Error: 5: Hi . Im running Windows 10 Pro x64 1909 buid 10.0.18363.628 When I run the command : dism /online /Cleanup-Image /StartComponentCleanup It stuck at 20% and I get Error: 5 Access is denied. In the dism.log I see this lines ... 2020-02-08 21:34:04,...