Try the supported Windows repair paths first, then use an in-place repair from matching media if Windows Setup still fails.
- Remove anything that commonly blocks upgrade or repair.
- Unplug nonessential hardware such as USB drives, printers, scanners, speakers, and external drives.
- If the device is docked, undock it.
- Uninstall non-Microsoft antivirus or other nonessential software from Control Panel\Programs\Programs and Features.
- For 0xC1900101-class setup failures, Microsoft also recommends checking Device Manager for devices with a yellow exclamation mark and updating or uninstalling the affected driver.
- Run Windows repair commands from an elevated Command Prompt.
- Open Command Prompt as administrator.
- Run:
DISM.exe /Online /Cleanup-image /Restorehealth - Wait for the success message.
- Then run:
sfc /scannow - Wait for the scan to reach 100%, then try Windows Update or Setup again.
- If Windows Update or Setup is still being blocked, do a clean restart and retry.
- A clean restart starts Windows with a minimal set of drivers and startup programs and can eliminate software conflicts during update or installation.
- This is specifically recommended for setup failures caused by background processes.
- If update components appear corrupted, reset the Windows Update folders.
- Warning: these are advanced command-line steps and require administrator permissions.
- In an elevated Command Prompt, run these commands one at a time:
net stop bits net stop wuauserv ren %systemroot%\softwaredistribution softwaredistribution.bak ren %systemroot%\system32\catroot2 catroot2.bak net start bits net start wuauserv - Restart the PC after the commands complete.
- Check and repair disk errors.
- In an elevated Command Prompt, run:
chkdsk /f C: - Restart when prompted so repairs can run.
- In an elevated Command Prompt, run:
- If DISM still cannot repair the image or Setup keeps failing, use an in-place repair from matching Windows media.
- The documented repair path for persistent corruption is to mount Windows installation media and run setup.exe as an in-place repair/upgrade that keeps files and apps, provided the media matches the installed system closely enough.
- Similar Microsoft Q&A cases with persistent DISM or setup failures were resolved by mounting the recommended ISO and running setup.exe to rebuild system files while preserving personal files and apps.
- If matching media still only offers clean install, the remaining documented fallback is a clean installation.
- This is the last resort because it is more disruptive.
Given the current symptoms:
-
sfc /scannowreporting that the repair service could not start, - DISM failing,
- Windows Update failing to download the Insider feature update,
- and Setup failing before restart,
the most relevant supported sequence is:
- clean restart,
- remove third-party security software and nonessential peripherals,
- run
DISM.exe /Online /Cleanup-image /Restorehealththensfc /scannow, - reset SoftwareDistribution/Catroot2,
- run
chkdsk /f C:, - retry the in-place repair from the closest matching ISO.
If the ISO still does not allow keeping files and apps because of image mismatch, the context does not provide a faster supported path to leave Insider builds without using matching repair media or moving to a clean installation.
- Get help with Windows upgrade and installation errors
- Get help with Windows upgrade and installation errors
- Troubleshoot problems updating Windows
- Troubleshoot problems updating Windows
- Troubleshoot problems updating Windows
- sfc /scannow, DISM and Windows 11 Installation not working after KB5058502 failure - Microsoft Q&A