Dism.exe /ResetBase error on Windows server 2016

Soni, Priyal 1 Reputation point
2020-11-05T11:54:23.243+00:00

I'm executing the command

DISM /Image:E:\WIM\Mount /Cleanup-Image /StartComponentCleanup /ResetBase
on an offline mounted WIM Image.

I'm facing this error:

Error: 0x800f0806

The operation could not be completed due to pending operations.
I've tried

sfc /scannow
deleted C:\Windows\WinSxS\pending.xml
Started another DISM.exe session
Cleared Registry keys
Mounted to different location (Mount & Re-Mount)
ADK version: 10.1.19041.1

How to resolve this issue?

Windows Server Setup
Windows Server Setup
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
252 questions
{count} votes

2 answers

Sort by: Most helpful
  1. abbodi86 3,886 Reputation points
    2020-11-06T08:22:34.203+00:00

    If you enable .NET 3.5 feature, or add some updates that trigger "Install pending", you cannot perform Cleanup-Image offline

    FYI, ResetBase is disabled by default for Windows 10 / Server 2016 and has no affect

    1 person found this answer helpful.
    0 comments No comments

  2. Dale Kudusi 3,236 Reputation points
    2020-11-06T07:36:42.16+00:00

    Hi,
    The error 0x800f0806 indicates “the operation could not be complete due to locked resources”
    Please try that above procedure again in a Clean Boot environment:
    https://support.microsoft.com/en-us/help/929135/how-to-perform-a-clean-boot-in-windows
    If it does not work, also perform a SFC: sfc /scannow

    Best regards.

    **
    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    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.