If you see the message “There is a system repair pending which requires a reboot to complete” when running sfc /scannow in Windows 11, it means the system has detected an unfinished repair operation. This prevents the System File Checker (SFC) from scanning and fixing corrupted files, leaving your PC vulnerable to stability issues and performance problems.
This guide explains how to clear the pending repair state using methods like DISM commands, deleting system cache files, and editing the registry — so you can get SFC running again and keep Windows 11 healthy.
Method 1: Use DISM to Resolve Pending Repairs
The Deployment Image Servicing and Management (DISM) tool can repair system corruption and clear stuck repair tasks that block SFC.
Step 1: Open the Start menu, type cmd, right-click Command Prompt, and select Run as administrator.

Step 2: Run the following command to repair the Windows image using Windows Update as a source:
DISM.exe /Online /Cleanup-Image /RestoreHealth

This command downloads and replaces any damaged system files. The process can take several minutes depending on your PC’s speed and internet connection.
Step 3: If the same error persists, especially after failed updates, run this additional command to revert any unfinished repair actions:
DISM.exe /image:C:\ /cleanup-image /revertpendingactions

💡 Replace C:\ with the drive letter where Windows is installed if different.
Step 4: Restart your PC, then run sfc /scannow again to confirm that the issue is resolved.
Method 2: Delete the Pending.xml File
Windows uses a file called pending.xml inside the WinSxS folder to track ongoing repairs. If this file becomes corrupted, Windows may remain stuck in a “pending repair” state.
Step 1: Open File Explorer and navigate to:
C:\Windows\WinSxS

Step 2: Find pending.xml and delete it. If you get a permissions error, take ownership of the file or delete it via Command Prompt.
Step 3: Alternatively, open Command Prompt as administrator and run:
del C:\Windows\WinSxS\pending.xml

Step 4: Restart your computer and run sfc /scannow again.
If the issue continues, move on to the next method.
Method 3: Remove the RebootPending Registry Key
Windows keeps a RebootPending registry key that tracks unfinished operations requiring a restart. If this key gets stuck, it can block further system repairs.
Step 1: Press Win + R, type regedit, and press Enter to open the Registry Editor. Approve any UAC prompts.

Step 2: Navigate to the following location:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

Step 3: Look for a folder named RebootPending under CurrentVersion.
If it exists, right-click it and choose Delete.
Step 4: Close the Registry Editor and restart your PC. Then, try running sfc /scannow again.

⚠️ Warning: Editing the Windows Registry can cause system issues if done incorrectly. Always back up the registry or create a restore point before making changes.
Method 4: Update Device Drivers
Outdated or corrupted drivers — especially for storage controllers, chipsets, or graphics cards — can interfere with system repair operations.
Step 1: Press Win + X and select Device Manager.

Step 2: Expand important sections like Display adapters and Storage controllers.
Step 3: Right-click each device and choose Update driver → Search automatically for drivers.

Step 4: Restart your PC and re-run sfc /scannow to check if the issue is resolved.
Keeping your drivers updated helps maintain system stability and prevents repair conflicts.
Method 5: Change SATA Mode in BIOS
Sometimes, the pending repair error occurs due to SATA mode conflicts between Windows and your BIOS. Changing the SATA controller mode can help resolve this.
Step 1: Restart your PC and press the BIOS key (usually Del, F2, F10, or Esc) during startup.
Step 2: Look for SATA Configuration or Storage Mode.
Step 3: If set to AHCI or RAID, try switching to IDE, or vice versa.
Step 4: Save and exit BIOS, then let Windows boot and test SFC again.
⚠️ Note: Changing SATA mode may affect bootability. If Windows fails to load, revert the setting to its previous mode.
Method 6: Rebuild the Master Boot Record (MBR)
A corrupted boot sector can also cause system repair loops. Rebuilding the MBR (Master Boot Record) often fixes stubborn startup and repair issues.
Step 1: Boot into the Windows Recovery Environment (WinRE):
- Hold Shift and click Restart, or
- Boot using a Windows installation USB.
Step 2: Navigate to Troubleshoot → Advanced options → Command Prompt.

Step 3: Enter the following commands one by one, pressing Enter after each:
bcdboot C:\Windows
bootrec /FixMBR
bootrec /FixBoot
Replace C:\Windows with your Windows installation path if different.

Step 4: Restart your computer and run sfc /scannow again to verify the fix.
Final Option: Repair Install or Clean Installation
If none of the above methods fix the error, you may be dealing with deep system corruption. In this case, perform a repair install (in-place upgrade) to reinstall Windows without losing files. As a last resort, a clean installation ensures a fresh start and restores full SFC functionality.
Conclusion
The “There is a system repair pending which requires a reboot to complete” message in Windows 11 usually points to unfinished repairs, corrupted files, or registry conflicts.
In most cases, using DISM commands or deleting the pending.xml file resolves the problem quickly. For more persistent cases, removing the RebootPending registry key, updating drivers, or rebuilding the MBR can restore normal system repair operations.
Once fixed, sfc /scannow will work again — allowing you to scan, repair, and maintain a healthy Windows installation.
And if you'd like to go a step further in supporting us, you can treat us to a virtual coffee ☕️. Thank you for your support ❤️!
We do not support or promote any form of piracy, copyright infringement, or illegal use of software, video content, or digital resources.
Any mention of third-party sites, tools, or platforms is purely for informational purposes. It is the responsibility of each reader to comply with the laws in their country, as well as the terms of use of the services mentioned.
We strongly encourage the use of legal, open-source, or official solutions in a responsible manner.


Comments