Windows 10: Start Component Cleanup - Access Denied - Error Code 5

Discus and support Start Component Cleanup - Access Denied - Error Code 5 in Windows 10 Performance & Maintenance to solve the problem; Running Windows 10 Pro. V21H1 Build 19043.1110 When I run dism /online /cleanup-Image /StartComponentCleanup it ends at 23% Access denied - Error Code... Discussion in 'Windows 10 Performance & Maintenance' started by Caledon Ken, Jul 14, 2021.

  1. Start Component Cleanup - Access Denied - Error Code 5


    Running Windows 10 Pro. V21H1 Build 19043.1110 When I run dism /online /cleanup-Image /StartComponentCleanup it ends at 23% Access denied - Error Code 5 I ran an Inplace Repair which processed successfully. I quit MalwareBytes (just in case it was protecting something) Ran chkdsk /scan - Windows has scanned file system and found no errors Ran sfc /scannow - found corruption and repaired (this was almost directly after inplace) Reran sfc /scanow - no integrity erros found Ran dism /online /cleanup-Image /checkhealth - No component store corruption detected Ran dism /online /cleanup-image /scanhealth - No component store corruption detected Ran dism /online /restorehealth - the restore operation completed successfully Ran dism /online / cleanup-image /analzecomponentstore Reported size 7.61 GB Actual size 7.54GB Date of last cleanup 2021-04-09 Component Store Cleanup Recommended: Yes Ran dism /online /cleanup-image /startcomponentcleanup Fails at 23.7% Error code 5 Access denied. I should mention I've run this several times and the component store has come down in size from 9.24 GB. (Actual size 8.88). These numbers were from right after the inplace. Then I executed all the commands above. The error in the CBS log that kicks the issues off is CSI 00000038@2021/7/14:13:40:36.746 (F) onecore\base\wcp\sil\systemisolationlayer.cpp(351): Error STATUS_CANNOT_DELETE originated in function Windows::Rtl::SystemImplementation::MarkFileDeletePending expression: (null) [gle=0x80004005] then 2021-07-14 09:40:39, Error CSI 00000039 (F) STATUS_CANNOT_DELETE #6586874# from Windows::Rtl::SystemImplementation::MarkFileDeletePending(...)[gle=0xd0000121] 2021-07-14 09:40:39, Error CSI 0000003a (F) STATUS_CANNOT_DELETE #6586873# from Windows::Rtl::SystemImplementation::CDirectory:eleteExistingFile(...)[gle=0xd0000121] 2021-07-14 09:40:39, Error CSI 0000003b (F) STATUS_CANNOT_DELETE #6586872# from Windows::Rtl::SystemImplementation::CDirectory_IRtlDirectoryTearoff:eleteExistingFile(flags = (MissingFileIsOk|MarkDeletePending|OpenForBackup|DeleteIfReadOnly|SharingViolationIsOk|Transactional ConflictIsOk), oa = @0x84c5dac370->SIL_OBJECT_ATTRIBUTES {s:40; on:"03d9a1a4bd0c6336069f06358119566d6cfd783c06fb8ac1f7c2f77c7f246d14.cat"; aOBJ_CASE_INSENSITIVE)}, disp = Invalid) [gle=0xd0000121] 2021-07-14 09:40:43, Error CSI 0000003c (F) STATUS_CANNOT_DELETE #4076988# from CCSDirectTransaction::OperateEnding at index 0 of 1 operations, disposition 0[gle=0xd0000121] 2021-07-14 09:40:43, Error CSI 0000003d (F) HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED) #4076900# from Windows::COM::CComponentStore::InternalTransact(...)[gle=0x80070005] 2021-07-14 09:40:43, Error CSI 0000003e (F) HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED) #4076898# from Windows::ServicingAPI::CCSITransaction::ICSITransaction_Commit(Flags = 22, pSink = NULL, disp = 0)[gle=0x80070005] 2021-07-14 09:40:43, Error CSI 0000003f (F) HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED) #4076897# 22220901 us from Windows::ServicingAPI::CCSITransaction_ICSITransaction::Commit(flags = 0x00000016, pSink = NULL, disp = 0) [gle=0x80070005]

    :)
     
    Caledon Ken, Jul 14, 2021
    #1

  2. system error 5 "access denied"

    Hi newbylive,

    Error 5: Access is Denied prevents you from installing software on your computer and accessing or modifying certain files. However, we would like to know more regarding your concern.
    Kindly answer the questions below:

    • Where do you see this error message?
    • Why are you trying to clean boot your PC?

    Here's how to
    perform a clean install of Windows 10
    . From there, you'll see Andre Da Costa's forum article andyou can follow the steps provided.

    Also, you can refer to this
    related thread
    and check out the response provided by Yashwanth Kotakuri to resolve the issue with the error that you're getting.

    Feel free to let us know if you need anything else.
     
    Jennifer Bri, Jul 14, 2021
    #2
  3. Mithin_EJ Win User
    WindowsApps Folder Cleanup

    Hi,

    Thank you for writing to Microsoft Community Forums.

    I Suggest you to take ownership of the folder and attempt to delete the contents of the folder, I recommend you to try the below steps:

    Step 1:

    Follow the steps listed in
    Access Denied
    or other errors when you access or work with files and folders in Windows.

    Step 2:

    Check for the article
    Disk cleanup
    in Windows 10

    Hope it helps,

    Let us know if you got the help you needed by clicking yes Or No.

    Mithin EJ

    Microsoft Community- Moderator
     
    Mithin_EJ, Jul 14, 2021
    #3
  4. Start Component Cleanup - Access Denied - Error Code 5

    I can't update my programs error code 5 access is denied

    Hello I'm trying to use a software to update one of my programs and I'm asked to allow the file to go through, I say yes but when it goes further I start getting error code number 5 stating that access is denied, I have no idea how to fix this because
    as far as I'm aware of i'm the administrator of this PC. How do I fix this and what am I supposed to do? (Step by step please and make sure to explain all paths, with pictures if you have them)
     
    Rainbowdragon, Jul 14, 2021
    #4
Thema:

Start Component Cleanup - Access Denied - Error Code 5

Loading...
  1. Start Component Cleanup - Access Denied - Error Code 5 - Similar Threads - Start Component Cleanup

  2. Access is Denied os error 5

    in Windows 10 Installation and Upgrade
    Access is Denied os error 5: Hello everyone,I have no experience with the Rust language, and have been trying to download it. I have deleted and reinstalled the rust installer 3 times now, though everytime I run it, I just get an error message saying the access is denied. I have read the rust-docs and...
  3. Error 5 Access is denied

    in Windows 10 Gaming
    Error 5 Access is denied: Hello,First of all I do not speak very well English but I will try to describe my issue as best as I can.I use Razer Synapse. I bought a new PC with Win 10 and Synapse was working like for 2 days and all of sudden the software has stopped working. I tried to fix it and I even...
  4. Error 5 Access is denied

    in Windows 10 Software and Apps
    Error 5 Access is denied: Hello,First of all I do not speak very well English but I will try to describe my issue as best as I can.I use Razer Synapse. I bought a new PC with Win 10 and Synapse was working like for 2 days and all of sudden the software has stopped working. I tried to fix it and I even...
  5. Error 5 Access is denied

    in Windows 10 Drivers and Hardware
    Error 5 Access is denied: Hello,First of all I do not speak very well English but I will try to describe my issue as best as I can.I use Razer Synapse. I bought a new PC with Win 10 and Synapse was working like for 2 days and all of sudden the software has stopped working. I tried to fix it and I even...
  6. 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...
  7. error 5 access is denied

    in Windows 10 BSOD Crashes and Debugging
    error 5 access is denied: I've been getting error 5 access is denied when Installing any app on Windows, How do I fix this? [ATTACH] [ATTACH] https://answers.microsoft.com/en-us/windows/forum/all/error-5-access-is-denied/3b2b1eb0-ae78-491c-8f7c-4673ae9b18fa
  8. access denied error 5

    in Windows 10 Drivers and Hardware
    access denied error 5: I can't download and install Lenovo h50-50 updates nor drivers, a note with denied access and error 5 is dispayed. https://answers.microsoft.com/en-us/windows/forum/all/access-denied-error-5/f89f5fc4-2a48-4119-8509-789e01585056
  9. System Error. Code: 5. Access Denied

    in Windows 10 Network and Sharing
    System Error. Code: 5. Access Denied: When I was trying to login to a Web development website as "http://IP or domain:port/SSMISDIY/MyApp/#login", it showed "System Error. Code: 5. Access Denied”. My Windows pro edition is 1709. I have disabled firewall and enabled system access permission, but it still didn't...
  10. System error 5 Access denied

    in User Accounts and Family Safety
    System error 5 Access denied: Hello, When setting up a user account for my wife, which works fine, however I now cannot access my account which had administrator rights. I do not show up as an option. I tried using the default administer account via command prompt and I get a "system error 5" "Access...