DISM /cleanup-image /StartComponentCleanup /ResetBase failed on offline image due to pending operation

P S 6 Reputation points
2022-10-09T14:30:29.52+00:00

I tried to customize my own Windows 10 21H2 wim file, I removed some features and added .net 3.5 into the image, no any other updates or packages is added. The image is mount from a wim file to the directory C:\TESTWIN and therefore it is and offline image.

When I tried to run the command DISM /image:C:\TESTWIN /cleanup-image /StartComponentCleanup /ResetBase I got the error 0x800f0806 which said I have a pending operation.

I found that the .Net3.5 component is pending to be install, also the features I removed is pending.
I also did the dism.exe /unmount-wim /mountdir:C:\TESTWIN /commit, but next time when I remount the wim, those pending operation still presist. I have no idea of what to do next, I have read through the documentation of DISM but nothing said about how to deal with pending operation.

Does anyone knows how do I finish/complete those pending operations? That is an offline image so sfc /scannow will not work.

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. Limitless Technology 39,916 Reputation points
    2022-10-10T14:27:47.78+00:00

    Hello

    Thank you for your question and reaching out.

    Please try to revert or uninstall pending changes as per below DISM parameter.

    /Cleanup-Image /RevertPendingActions

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

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  2. P S 6 Reputation points
    2022-10-11T12:41:20.837+00:00

    Hi LimitlessTechnology-2700,

    If I revert the chnages then there is meaningless and waste of time to make changes to the image.

    I have mentioned that I would like to customise the Win 10 image.

    0 comments No comments

  3. Sean Liming 4,766 Reputation points Volunteer Moderator
    2022-10-11T15:44:18.057+00:00

    I typically run this command in the live image rather than the mounted image. The issue of .NET 3.5 pending install tells me that the OS has to be put on a live system and the OS has to run to complete the setup.

    0 comments No comments

Your answer

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