Independent guides. Not affiliated with Microsoft. We never ask you to call, pay, or let anyone connect to your PC.

How we work
Fixpath

FixWindows Update

Stuck on "Undoing changes made to your computer"

Applies to
Windows 11 and Windows 10
Difficulty
Advanced
Time
About 90 min
Risk
Changes settings
Reviewed

Quick answer

Leave it for at least an hour, because undoing an update is slow. If it never ends or repeats on every restart, open the recovery screen, choose Uninstall Updates, then pause updates once Windows starts so the failed update doesn't retry straight away.

Fix 1Wait, and don't turn the PC off yet

When an update fails at the last stage, Windows puts back every file it changed. That can take a long time, especially on older hard drives. Turning the PC off in the middle can leave Windows half old, half new.

  1. Plug a laptop into power.
  2. Leave the PC alone for at least an hour, two on an older or slower PC. If the drive light flickers now and then, Windows is still working.
  3. Once Windows starts normally, go straight to the "Stop the failed update from retrying" fix below.

Fixed? You can stop here. Still happening: go to Fix 2

Fix 2Restart once it has clearly frozen

If the screen hasn't changed for hours and the drive is silent, the undo process has usually stalled rather than failed. A restart often lets Windows finish undoing and start normally.

  1. Unplug USB drives, docks, printers and other extras. Microsoft lists external hardware as a common cause of update trouble.
  2. Press and hold the power button for about 10 seconds until the PC turns off.
  3. Wait 30 seconds, then turn it on. It may show "Undoing changes" again for a while before reaching the sign-in screen.

Fixed? You can stop here. Still happening: go to Fix 3

Fix 3Stop the failed update from retrying

Windows tries a failed update again at the next restart, which is how one failure turns into a loop. Pausing updates gives you time to fix the cause before it retries.

  1. Open Settings then Windows Update and select Pause for 1 week. On Windows 10, open Settings then Update & Security then Windows Update and select Pause updates for 7 days.
  2. Note the update's number ("KB" followed by seven digits) and any error code from Update history.
  3. Free up space on drive C: if it's nearly full, unplug devices you don't need, then work through Windows Update failed to install, which ends with installing the update another way.
  4. Resume updates when you're ready to try again.

Fixed? You can stop here. Still happening: go to Fix 4

Fix 4Uninstall the update from the recovery screen

If Windows never reaches the desktop, the Windows Recovery Environment (a separate repair system built into your PC) can remove the latest update without starting Windows. Your files and apps are kept.

  1. Open the recovery screen. After Windows fails to start a few times it opens by itself. If not, turn the PC on and, as soon as the Windows or maker's logo appears, hold the power button until it turns off. Do this twice; on the third start you should see Automatic Repair. Select Advanced options.
  2. Select Troubleshoot then Advanced options then Uninstall Updates.
  3. Select Uninstall latest quality update for a monthly update, or Uninstall latest feature update if a yearly version upgrade was installing.
  4. Sign in if asked, confirm, and let the PC restart. Then pause updates as described in the fix above.

Fixed? You can stop here. Still happening: go to Fix 5

Fix 5Start in Safe Mode and clear the update cache

If the loop keeps restarting, a damaged download is often being retried each time. Safe Mode starts Windows with the bare minimum, so you can clear the update download folder before Windows tries again.

  1. From the recovery screen, select Troubleshoot then Advanced options then Startup Settings, then Restart. When the list appears, press 4 or F4 for Safe Mode. The Safe Mode guide has more ways in.
  2. Select Start, type cmd, right-click Command Prompt and select Run as administrator.
  3. Stop the Windows Update service. In Safe Mode it's often not running, so "not started" is fine.
    Command Prompt as administrator
    net stop wuauserv
    How do I open Command Prompt as administrator?

    Select Start and type cmd. Right-click Command Prompt, select Run as administrator, then select Yes.

  4. Rename the update download folder so Windows starts fresh. No message means it worked.
    Command Prompt as administrator
    ren %systemroot%\SoftwareDistribution SoftwareDistribution.old
  5. Restart normally, then pause updates as described above.

Fixed? You can stop here. Still happening: go to Fix 6

Fix 6Cancel the pending update with DISM

Windows keeps a list of update steps waiting to run at startup. If one of them keeps failing, every restart replays it. DISM, a Windows repair tool, can cancel those waiting steps from the recovery screen. Microsoft documents this for PCs that won't start after an update.

  1. From the recovery screen, select Troubleshoot then Advanced options then Command Prompt. If asked, choose your account and enter its password, or your BitLocker recovery key.
  2. Your Windows drive isn't always C: here. Check it with the command below. If you see a list of folders, C: is right. If you get an error, try dir D:\Windows.
    Command Prompt
    dir C:\Windows
    How do I open Command Prompt?

    Select Start, type cmd, then select Command Prompt.

  3. Cancel the pending update steps, using the letter you found. This can take several minutes.
    Command Prompt
    DISM /Image:C:\ /Cleanup-Image /RevertPendingActions
    A good result ends with The operation completed successfully.
  4. Close Command Prompt, select Continue to start Windows, and pause updates straight away.

Fixed? You can stop here. Still happening: go to Fix 7

Fix 7Go back to an earlier restore point

If nothing else breaks the loop, System Restore puts Windows' system files, drivers and settings back to how they were before the update, without touching your personal files.

  1. From the recovery screen, select Troubleshoot then Advanced options then System Restore.
  2. Choose a restore point dated before the update started, and follow the prompts. See Use System Restore for the full steps.

Fixed? You can stop here. Still happening: what to do next

If none of these worked

Stop here rather than trying riskier changes. These are the right places to go next:

Never call a phone number shown in a pop-up, or let someone you don't know connect to your PC. Microsoft doesn't put phone numbers in error messages. How to spot a tech-support scam

Sources and review

Checked against Microsoft's own documentation:

Last reviewed . Spotted a step that doesn't match your screen? Tell us and we'll check it.