Windows 11 In-Place Upgrade Fails with Error 0x8007042B 0x2000D – Missing Settings & Need Repair Install

Nitin Kumar 0 Reputation points
2025-07-31T18:22:56.9+00:00

I am using Windows 11 Single Language on my laptop.

Recently, I wanted to enable Windows Sandbox, which is not available in my edition. I tried running a script that downloaded a Windows image something and restarted my laptop.

After that:

Many settings went missing, such as Windows Update, Recovery, and Reset options.

I decided to perform an in-place upgrade (repair install) using the Windows 11 Media Creation Tool to keep my apps and data.

However, the upgrade fails every time with the error:User's image

This is the detail of script that i run to install the sandbox and i found on virustotal that it contain a malware

@echo off

echo Checking for permissions

nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"

echo Permission check result: %errorlevel%

REM --> If error flag set, we do not have admin.

if '%errorlevel%' NEQ '0' (

echo Requesting administrative privileges...

goto UACPrompt

) else ( goto gotAdmin )

:UACPrompt

echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"

echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"

echo Running created temporary "%temp%\getadmin.vbs"

timeout /T 2

"%temp%\getadmin.vbs"

exit /B

:gotAdmin

if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )

pushd "%CD%"

CD /D "%~dp0" 

echo Batch was successfully started with admin privileges

echo .

cls

Title Sandbox Installer

pushd "%~dp0"

dir /b %SystemRoot%\servicing\Packages*Containers*.mum >sandbox.txt

for /f %%i in ('findstr /i . sandbox.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages%%i"

del sandbox.txt

Dism /online /enable-feature /featurename:Containers-DisposableClientVM /LimitAccess /ALL

pause

Later i found that this script is flagged as a malwareUser's image

Additional Context Before Installing Sandbox:(Why I require sandbox)

Before attempting to install the Sandbox feature, I tried to clean my system in order to get a free trial of certain software. I:

Manually deleted some registry keys related to that software

  1. Used both Revo Unistaller to delete related files and Revo Registry Cleaner Advanced Registry Scan to delete other unused or invalid registry entries

After these changes, I later ran the Sandbox installation script (mentioned above), which may have further modified my system.

I only want to reinstall or in place upgrade of window 11 without losing any app and file :)

Windows for home | Windows 11 | Install and upgrade
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Ramesh Srinivasan 166.6K Reputation points Volunteer Moderator
    2025-08-01T02:49:11.1033333+00:00

    Regarding the VT analysis, 1/62 is usually a false-positive.

    Please share your setup logs for analysis. The following batch file collects the setup logs and saves the zip file to your desktop.

    • Download setuplogscollect.bat (GitHub) and save it to the desktop.
    • Right-click on the downloaded file and click Properties. Click "Unblock" (if exists) and click OK.
    • Extract the batch file to the desktop.
    • Right-click on the file and choose "Run as administrator". It runs multiple commands to collect various logs. Let it complete. It outputs a SetupLogs.zip file on your desktop.
    • Share SetupLogs.zip on OneDrive or GoFile.io and post the download link here.

    (The batch file contains plain text code. You can read its contents using Notepad before running it. It collects the setup logs, msinfo32.exe log, drivers list, boot configuration info, and the compatibility appraiser results from your system.)


  2. Ramesh Srinivasan 166.6K Reputation points Volunteer Moderator
    2025-08-01T17:32:08.49+00:00

    C:\WINDOWS\System32\vmwp.exe was running. It's the Virtual Machine worker process.

    I think the following steps are worth a try:

    • Reinstall Windows Sandbox and uninstall it again.
    • Uninstall Hyper-V.
    • If you're using VMWare, uninstall it as well.
    • Temporarily disable Virtualization in the UEFI settings.
    • Create a registry backup using Acelogix Regbak.
    • Delete the following task using Task Scheduler. It doesn't exist on my system:
      \Microsoft\Windows\PCRPF\PCR Prediction Framework Firmware Update Task

  3. Ramesh Srinivasan 166.6K Reputation points Volunteer Moderator
    2025-08-02T12:41:14.1966667+00:00

    Nitin,

    If Sandbox and Hyper-V have been uninstalled, the cmservice shouldn't appear in the first place. Disabling cmservice might not be the ideal solution. The presence of that service and the other process I mentioned indicates that Sandbox uninstallation was partially done. As mentioned earlier, try reinstalling Sandbox and uninstalling it again.

    Once done, let me know. We can try another ProcMon trace (not a boot trace) using a different setting.


    Regarding getting the input from other experienced members or Microsoft engineers, sorry, I can't do that because this is a peer-to-peer support forum, and I'm not an MSFT employee. I may be the most experienced one here (with over 25 yrs of experience), or I may be the least experienced one, I don't know :)

    By the way, if you want to contact Microsoft directly, use this link:

    https://support.microsoft.com/en-us/contactus/


  4. Nitin Kumar 0 Reputation points
    2025-08-28T13:00:42.9366667+00:00

    Final Update (Root Cause Found):

    I was on Windows 11 Single Language, where Windows Sandbox is not available.

    I ran a script to force-install Sandbox.

    This installed Sandbox’s stripped-down environment (from Enterprise edition) into my actual OS.

    As a result, many system settings disappeared: Windows Update, Recovery, Reset this PC, Remote Desktop, Optional Features, etc.

    Later, I upgraded to Windows 11 Pro and enabled Sandbox officially.

    Inside Sandbox (in Pro), I noticed the same settings were missing by design.

    This confirmed that earlier I had accidentally merged Sandbox’s environment into my real OS.

    👉 Conclusion:

    Windows Sandbox is only supported on Pro/Enterprise.

    Forcing it on Single Language will break system settings and updates.

    • The only fix for me was to reset Windows (any version) from blue screen window without losing any data :) (choose keep my files option from reset page)

    Main OS screenshot

    WhatsApp Image 2025-08-02 at 12.08.42_4ee95572

    Sandbox screenshot

    User's image

    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.