Skip to content
GEEKnodes

Windows · Updated on

Undo Pending Updates When Windows 10 or 11 Will Not Boot

How to escape an update boot loop on Windows 10 and 11: uninstall updates from WinRE or revert them with DISM /RevertPendingActions.

Sometimes an update stops halfway and Windows enters a loop: it restarts, shows “Working on updates”, fails, undoes changes and starts again, or simply never gets past the logo. There are two official tools for this: Uninstall Updates in the Windows Recovery Environment (WinRE) and DISM /RevertPendingActions, which discards all pending servicing operations. This guide covers both for Windows 10 and Windows 11.

A boot loop is solved from WinRE: first with Uninstall Updates and, if not enough, with DISM from Command Prompt.
Two recovery routes inside WinRE to escape the boot loop.

Before you start

  • You need to reach WinRE. If Windows fails to boot several times it enters on its own; otherwise force it by powering off with the button during the logo twice in a row, or boot from a Windows installation USB (choose language › Next › Repair your computer).
  • If the disk is encrypted with BitLocker or device encryption, you need the recovery key (at aka.ms/myrecoverykey if you use a Microsoft account).
  • Windows 10 support ended on October 14, 2025. If you stay on Windows 10 and get updates through ESU, this guide still applies.
  • RevertPendingActions is a recovery tool: Microsoft states it should only be used on a Windows that does not boot, never on the running system.

1. Try “Uninstall Updates” first

The simplest and least risky method.

  1. In WinRE go to Troubleshoot › Advanced options › Uninstall Updates.
  2. Choose Uninstall latest quality update (monthly patches) or Uninstall latest feature update (the version change, for example from 24H2 to 25H2).
  3. Select your account, enter the password and confirm.
  4. Restart and check whether Windows boots.

If it does not work or errors, move to the DISM method.

2. Open Command Prompt in WinRE

In WinRE go to Troubleshoot › Advanced options › Command Prompt. If asked, choose your account and enter the password or BitLocker key.

3. Find the Windows drive letter

Inside WinRE the Windows drive is not always C:. Check with diskpart:

Two drives, C: and D:, with the Windows folder located on D:.
In WinRE, check which letter holds the Windows folder.
diskpart
list volume
exit

Find the largest NTFS volume or the one with your system disk’s label. To confirm, list its content; the Windows folder must exist:

dir D:\Windows

Replace D: with your letter. The following examples use C:.

If the drive shows as encrypted and you cannot access it, unlock it with the BitLocker recovery key (48 digits):

manage-bde -unlock C: -RecoveryPassword 111111-222222-333333-444444-555555-666666-777777-888888

4. Revert pending actions with DISM

With the right letter, run:

dism /image:C:\ /cleanup-image /revertpendingactions

DISM discards all pending servicing operations (package installs or removals that never completed). It may take a few minutes; wait for the message that the operation completed successfully.

If it fails due to lack of temporary space, point to a working folder on the Windows disk:

mkdir C:\Scratch
dism /image:C:\ /scratchdir:C:\Scratch /cleanup-image /revertpendingactions

Close the console with exit and choose Continue to boot Windows.

5. Repair the system once inside

When Windows boots again, open Terminal (Admin) and check system files are healthy:

dism /online /cleanup-image /restorehealth
sfc /scannow

Then, to stop the same update installing right away, go to Settings › Windows Update and use Pause updates for a week or two. That gives Microsoft time to release a fixed version.

Check it works

Windows should boot to the desktop without showing “Undoing changes” again. To confirm which updates are installed, open Settings › Windows Update › Update history (Windows 10: Settings › Update & Security › Windows Update › View update history). The problem update should show as failed or not installed, and will be offered again later.

Common problems

DISM says the image is invalid or cannot find Windows. Almost always the drive letter. Repeat step 3 and make sure dir X:\Windows shows the system folder.

DISM says the operation is not supported. Happens with /online or if you point at the WinRE image itself (usually X:). /image: must point to the drive where your Windows is installed.

WinRE asks for a BitLocker key you do not have. Without it the encrypted disk is inaccessible. Look at aka.ms/myrecoverykey with the PC’s Microsoft account or, on a work PC, ask IT.

After reverting, Windows still does not boot. Try Startup Repair or System Restore from the same advanced options. If nothing works, Reset this PC › Keep my files reinstalls Windows keeping your documents.

The loop returns as soon as Windows downloads the update again. Pause updates as in step 5 and check there is enough free space on the system disk; a nearly full drive is a frequent cause of failed installs.

Frequently asked questions

Do I lose files with RevertPendingActions? No. It only affects pending servicing operations, not documents or programs.

Comparison between uninstalling an installed update and reverting still pending actions.
Uninstall removes an installed update; revert discards incomplete actions.

How is it different from “Uninstall Updates”? That option removes an update already installed; RevertPendingActions discards what was left half applied. Always start with the first.

Accessibility preferences

Quick profiles

Text and reading

Text size
Default
Line height
Default
Letter spacing
Default
Word spacing
Default

Colour

Motion and orientation

Cursor