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.
- Plug a laptop into power.
- 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.
- 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.
- Unplug USB drives, docks, printers and other extras. Microsoft lists external hardware as a common cause of update trouble.
- Press and hold the power button for about 10 seconds until the PC turns off.
- 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.
- Open Settings then
Windows Update and select Pause for 1 week. On Windows 10, open Settings thenUpdate & Security then and select Pause updates for 7 days.Windows Update - Note the update's number ("KB" followed by seven digits) and any error code from Update history.
- 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.
- 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.
- 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.
- Select Troubleshoot then
Advanced options then .Uninstall Updates - Select Uninstall latest quality update for a monthly update, or Uninstall latest feature update if a yearly version upgrade was installing.
- 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.
- From the recovery screen, select Troubleshoot then
Advanced options then , then Restart. When the list appears, press 4 or F4 for Safe Mode. The Safe Mode guide has more ways in.Startup Settings - Select Start, type cmd, right-click Command Prompt and select Run as administrator.
- Stop the Windows Update service. In Safe Mode it's often not running, so "not started" is fine.
net stop wuauservHow do I open Command Prompt as administrator?
Select Start and type cmd. Right-click Command Prompt, select Run as administrator, then select Yes.
- Rename the update download folder so Windows starts fresh. No message means it worked.
ren %systemroot%\SoftwareDistribution SoftwareDistribution.old - 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.
- From the recovery screen, select Troubleshoot then
Advanced options then . If asked, choose your account and enter its password, or your BitLocker recovery key.Command Prompt - 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.dir C:\WindowsHow do I open Command Prompt?
Select Start, type cmd, then select Command Prompt.
- Cancel the pending update steps, using the letter you found. This can take several minutes.
A good result ends with The operation completed successfully.
DISM /Image:C:\ /Cleanup-Image /RevertPendingActions - 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.
- From the recovery screen, select Troubleshoot then
Advanced options then .System Restore - 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:
- Microsoft SupportOfficial help for Windows, including the Get Help app built into Windows.
- Your PC maker's support siteFor hardware faults, drivers and warranty repairs. Find your model in Settings then
System then , then type the maker's web address yourself.About - A local repair shop you can visitFor hardware faults such as a failing drive, screen or battery.
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:
- Microsoft Support: How to uninstall a Windows Update
- Microsoft Support: Windows Recovery Environment
- Microsoft Learn: DISM operating system package servicing options
Last reviewed . Spotted a step that doesn't match your screen? Tell us and we'll check it.