This guide walks you through removing the “There is a system repair pending which requires reboot” error in Windows. This message typically appears when a Windows Update, driver installation, or system file repair was interrupted, leaving the system in a state where it believes a reboot is necessary but the repair process never completes. You will learn how to clear the pending state using built-in Windows tools, and how to safely resolve the issue without losing data.
What You’ll Need
- Administrator access to the Windows PC
- An active internet connection (for downloading updates or running online repairs)
- Enough free disk space (at least 10 GB recommended)
- A backup of important files (recommended before making system changes)
Step-by-Step
- Restart your computer properly. Sometimes the error is simply a leftover flag from a pending update. Click Start > Power > Restart. Wait for Windows to fully load, then check if the error still appears. If it does, proceed to the next step.
- Run Windows Update troubleshooter. Go to Settings > Update & Security > Troubleshoot > Additional troubleshooters. Select “Windows Update” and run the troubleshooter. Follow the on-screen prompts. This often clears stuck update states.
- Open Command Prompt as Administrator. Press Windows + R, type
cmd, then press Ctrl + Shift + Enter. Click “Yes” when prompted by User Account Control. - Check the pending repair state. In the Command Prompt, type the following and press Enter:
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending"
If you see a message like “Unable to find the specified registry key or value,” then there is no pending repair at the registry level. If the key exists, continue. - Run the System File Checker (SFC). Type
sfc /scannowand press Enter. This scans and repairs corrupted system files. It may take 10-20 minutes. Wait for the process to complete. Do not close the Command Prompt during the scan. - Run DISM (Deployment Imaging Service and Management Tool). After SFC finishes, type the following and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth
This repairs the Windows image itself. It may take up to 30 minutes and requires internet access. Let it finish completely. - Restart again. After both SFC and DISM complete, restart your PC. Check if the error persists.
- Clear the pending flag manually (if needed). If the error still appears, open Command Prompt as Administrator again. Type the following and press Enter:
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending" /f
This removes the registry key that triggers the “system repair pending” message. Be careful: only do this if SFC and DISM reported no issues. Then restart. - Check for pending updates. Go to Settings > Update & Security > Windows Update, click “Check for updates,” and install any available updates. Sometimes installing a new update clears the old pending state.
- Use the Windows Update Reset script (optional). If the error persists, you can reset the Windows Update components. Open Command Prompt as Administrator and run these commands one by one, pressing Enter after each:
net stop wuauservnet stop cryptSvcnet stop bitsnet stop msiserverren C:\Windows\SoftwareDistribution SoftwareDistribution.oldren C:\Windows\System32\catroot2 catroot2.oldnet start wuauservnet start cryptSvcnet start bitsnet start msiserver
Then restart and try Windows Update again.
Common Mistakes
- Skipping the restart. The error often clears after a simple reboot. Do not jump straight to registry edits.
- Deleting the registry key too early. If you delete the RebootPending key while a repair is still genuinely pending, you can cause system instability. Always run SFC and DISM first.
- Closing Command Prompt during SFC/DISM. Interrupting these tools can leave the system in a worse state. Let them complete.
- Ignoring disk space. SFC and DISM need several gigabytes of free space. If your drive is nearly full, the repair may fail.
- Using third-party “cleaners” to fix the error. These can delete important system files. Stick to built-in tools.
Tips
- Create a system restore point before making any registry changes. Type “Create a restore point” in Start, select your drive, and click “Create.”
- Run SFC and DISM in Safe Mode if the normal mode fails. To enter Safe Mode, hold Shift while clicking Restart in the Start menu, then go to Troubleshoot > Advanced options > Startup Settings > Restart, and press 4.
- If you have a recent system image backup, you can use it to restore Windows to a previous state. This is often the quickest solution if the error persists.
- Keep your system updated regularly to avoid pending repair states. Set Windows Update to automatic.
Troubleshooting
If the error remains after following all steps, try these additional measures:
- Check the CBS log. Open
C:\Windows\Logs\CBS\CBS.login Notepad. Look for lines containing “Error” or “Failed.” This can give clues about the underlying issue. Search online for the specific error code. - Perform a startup repair. Boot from a Windows installation USB, select “Repair your computer,” then go to Troubleshoot > Advanced options > Startup Repair. This can fix boot-related issues that cause the pending state.
- Check for disk errors. Open Command Prompt as Administrator and run
chkdsk C: /f /r. You will need to restart. This scans and repairs disk errors that may block repairs. - Use the Media Creation Tool to upgrade in place. Download the Windows Media Creation Tool from Microsoft, run it, and choose “Upgrade this PC now.” This reinstalls Windows while keeping your files and apps, which often clears persistent repair states.
- If all else fails, perform a clean install. Back up your data, then reinstall Windows from scratch. This is the most drastic step but guarantees a clean state.
Frequently Asked Questions
What causes the “system repair pending” error?
It usually occurs when a Windows Update or system file repair is interrupted, for example by a forced shutdown, power outage, or a crash during the update process. The system then marks a reboot as pending but never completes the repair.
Is it safe to delete the RebootPending registry key?
Only after you have run SFC and DISM and they report no issues. Deleting the key prematurely can leave the system in an inconsistent state, potentially causing future update failures.
Will this error affect my personal files?
No, the error itself does not touch your files. The repair processes (SFC, DISM) only modify system files. However, always back up important data before making system changes, just in case.
How long does SFC /scannow take?
It typically takes 10-20 minutes, but can be longer on older hard drives or systems with many files. Do not interrupt it.
Can I fix this error without Command Prompt?
Yes, you can try the Windows Update troubleshooter and a simple restart first. If those fail, you may need to use the graphical “Startup Repair” from a bootable USB, or the “Reset this PC” option in Settings (which keeps your files).
Will the error come back after I fix it?
Not unless another update is interrupted. To prevent recurrence, avoid shutting down during updates, keep your system plugged in (if a laptop), and ensure you have enough disk space.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Text Cursor Turning White in Windows 11
- Force Quit Non-Responding Apps on Mac: 6 Ways
- Chromebook Not Charging? Fix It Fast
- iPhone Won’t Make Calls but Texts Work? Fixes
- Android to iPhone Hotspot: Connect & Fix Issues
- How to Refresh or Factory Reset Your Microsoft Surface